# HG changeset patch # User Katsumi Yamaoka # Date 1288303395 0 # Node ID fc95f9fde9d35e8eb951f40e3ec694a2c6fedca1 # Parent 88ac54c22b2baf8dfe6000531b0c780e3da8921d gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after reselecting. diff -r 88ac54c22b2b -r fc95f9fde9d3 lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Thu Oct 28 10:36:59 2010 -0400 +++ b/lisp/gnus/ChangeLog Thu Oct 28 22:03:15 2010 +0000 @@ -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 -r 88ac54c22b2b -r fc95f9fde9d3 lisp/gnus/gnus-sum.el --- 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