* gnus-sum.el (gnus-summary-next-article): Don't bug out if the summary buffer has...
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 1 May 2011 18:00:44 +0000 (20:00 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sun, 1 May 2011 18:00:44 +0000 (20:00 +0200)
lisp/ChangeLog
lisp/gnus-sum.el

index 2ed7b29..a4a351f 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-sum.el (gnus-summary-next-article): Don't bug out if the summary
+       buffer has moved to a different frame.
+
 2011-05-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-request-article): Use nntp-insert-buffer-substring
index 807f133..3cbb479 100644 (file)
@@ -7783,7 +7783,8 @@ If BACKWARD, the previous article is selected instead of the next."
          ;; Somehow or other, we may now have selected a different
          ;; window.  Make point go back to the summary buffer.
          (when (eq current-summary (current-buffer))
-           (select-window (get-buffer-window current-summary)))
+            ;; FIXME: This burps when get-buffer-window returns nil.
+           (select-window (get-buffer-window current-summary 0)))
          (gnus-summary-walk-group-buffer
           gnus-newsgroup-name cmd unread backward point))))))))