(gnus-summary-rescan-group): Try to restore the window config after reselecting.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 28 Oct 2010 15:46:18 +0000 (17:46 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 28 Oct 2010 15:46:18 +0000 (17:46 +0200)
lisp/ChangeLog
lisp/gnus-sum.el

index 16d8b2e..9bb9568 100644 (file)
@@ -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.
index ca540b0..60e3cc8 100644 (file)
@@ -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