From: Stefan Monnier Date: Sun, 1 May 2011 18:00:44 +0000 (+0200) Subject: * gnus-sum.el (gnus-summary-next-article): Don't bug out if the summary buffer has... X-Git-Url: http://cgit.sxemacs.org/?a=commitdiff_plain;h=57e696f85f20423a661c9d10eb04ac624a8cb32d;hp=8ea8c66caa7ea01e9284a6c25c1ebf619e6ece81;p=gnus * gnus-sum.el (gnus-summary-next-article): Don't bug out if the summary buffer has moved to a different frame. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2ed7b29eb..a4a351fa5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-01 Stefan Monnier + + * 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 * nnimap.el (nnimap-request-article): Use nntp-insert-buffer-substring diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 807f133e4..3cbb479e0 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -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))))))))