From: Lars Magne Ingebrigtsen Date: Thu, 28 Oct 2010 22:03:15 +0000 (+0000) Subject: gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after resel... X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~370^2~17 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eb9df2c9c73cffa0c9864473f2890e2790c9fae5;p=emacs.git gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after reselecting. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 85d00c6607a..df12e96cde6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Lars Magne Ingebrigtsen + + * gnus-sum.el (gnus-summary-rescan-group): Try to restore the window + config after reselecting. + 2010-10-28 Julien Danjou * shr.el (shr-put-image): Use point even if only inserting text. diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index ca540b0f22f..60e3cc83d7f 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -7033,7 +7033,11 @@ The prefix argument ALL means to select all articles." (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