changeset 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 88ac54c22b2b
children e2284aa4cad3
files lisp/gnus/ChangeLog lisp/gnus/gnus-sum.el
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <larsi@gnus.org>
+
+	* gnus-sum.el (gnus-summary-rescan-group): Try to restore the window
+	config after reselecting.
+
 2010-10-28  Julien Danjou  <julien@danjou.info>
 
 	* shr.el (shr-put-image): Use point even if only inserting text.
--- 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