emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1d5d23a: Place point consistently in the Gnus group


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 1d5d23a: Place point consistently in the Gnus group buffer on exit
Date: Tue, 17 Apr 2018 13:22:21 -0400 (EDT)

branch: master
commit 1d5d23a9f69db81927ac802deb2ef7c5573bc6e9
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Place point consistently in the Gnus group buffer on exit
    
    * lisp/gnus/gnus-sum.el (gnus-summary-exit): Place point correctly
    when exiting with `q' (and the like) from the article buffer when
    only the article buffer is displayed (bug#31195).  This is
    apparently yet another fall-out from the "preserve-visible-point-
    in-windows" patches of yesteryear...
---
 lisp/gnus/gnus-sum.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index b68dfdf..234d527 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7286,12 +7286,13 @@ If FORCE (the prefix), also save the .newsrc file(s)."
       (if quit-config
          (gnus-handle-ephemeral-exit quit-config)
        (goto-char group-point)
+       (unless leave-hidden
+         (gnus-configure-windows 'group 'force))
        ;; If gnus-group-buffer is already displayed, make sure we also move
        ;; the cursor in the window that displays it.
        (let ((win (get-buffer-window (current-buffer) 0)))
-         (if win (set-window-point win (point))))
-       (unless leave-hidden
-         (gnus-configure-windows 'group 'force)))
+         (goto-char group-point)
+         (if win (set-window-point win (point)))))
 
       ;; If we have several article buffers, we kill them at exit.
       (unless single-article-buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]