gnus-sum.el (gnus-summary-read-group-1): Debbugs group entry fixups
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 21 Jan 2013 22:07:34 +0000 (22:07 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 21 Jan 2013 22:07:34 +0000 (22:07 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index 1f1b46c..745e0ed 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 ea68a6a..658863f 100644 (file)
@@ -4058,9 +4058,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)