Debbugs group entry fixups
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 21 Jan 2013 14:39:37 +0000 (15:39 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 21 Jan 2013 14:39:37 +0000 (15:39 +0100)
* gnus-sum.el (gnus-summary-read-group-1): Protect against not being
able to find the article, which can happen in debbugs groups,
apparently.

lisp/ChangeLog
lisp/gnus-sum.el

index 71f45bf..b4f426e 100644 (file)
@@ -1,3 +1,9 @@
+2013-01-21  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-sum.el (gnus-summary-read-group-1): Protect against not being
+       able to find the article, which can happen in debbugs groups,
+       apparently.
+
 2013-01-16  Glenn Morris  <rgm@gnu.org>
 
        * smiley.el (smiley-style): Make the file loadable in batch mode.
index 0184459..58dcf44 100644 (file)
@@ -4062,9 +4062,10 @@ If SELECT-ARTICLES, only select those articles from GROUP."
                 gnus-auto-select-first)
            (progn
              (let ((art (gnus-summary-article-number)))
-               (unless (and (not gnus-plugged)
-                            (or (memq art gnus-newsgroup-undownloaded)
-                                (memq art gnus-newsgroup-downloadable)))
+               (when (and art
+                          gnus-plugged
+                          (not (memq art gnus-newsgroup-undownloaded))
+                          (not (memq art gnus-newsgroup-downloadable)))
                  (gnus-summary-goto-article art))))
          ;; Don't select any articles.
          (gnus-summary-position-point)