Mercurial > emacs
diff lisp/gnus/gnus-sum.el @ 111220:fc95f9fde9d3
gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after reselecting.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Thu, 28 Oct 2010 22:03:15 +0000 |
parents | 7b332968b4ae |
children | ffb890b32d37 |
line wrap: on
line diff
--- a/lisp/gnus/gnus-sum.el Thu Oct 28 10:36:59 2010 -0400 +++ b/lisp/gnus/gnus-sum.el Thu Oct 28 22:03:15 2010 +0000 @@ -7033,7 +7033,11 @@ (defun gnus-summary-rescan-group (&optional all) "Exit the newsgroup, ask for new articles, and select the newsgroup." (interactive "P") - (gnus-summary-reselect-current-group all t)) + (let ((config gnus-current-window-configuration)) + (gnus-summary-reselect-current-group all t) + (gnus-configure-windows config) + (when (eq config 'article) + (gnus-summary-select-article)))) (defun gnus-summary-update-info (&optional non-destructive) (save-excursion