]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after resel...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 28 Oct 2010 22:03:15 +0000 (22:03 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 28 Oct 2010 22:03:15 +0000 (22:03 +0000)
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el

index 85d00c6607acf4135f66c2ec95444cba9b0100e5..df12e96cde63590d5871860c9a4585eac6bc57cf 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 ca540b0f22f751c9e517808af907de2c1e942135..60e3cc83d7f20589864208dc5d6de5f67b5b86e8 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