emacs-diffs
[Top][All Lists]
Advanced

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

master b2eec81: Do window configuration change before killing Gnus buffe


From: Lars Ingebrigtsen
Subject: master b2eec81: Do window configuration change before killing Gnus buffers on exit
Date: Sun, 19 Jul 2020 09:46:28 -0400 (EDT)

branch: master
commit b2eec81fcdd6811953c082ff34f813160a721cf3
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Do window configuration change before killing Gnus buffers on exit
    
    * lisp/gnus/gnus-sum.el (gnus-summary-exit): Do window
    configuration changes before killing off the summary buffer, so
    that the window conf machinery can return to a group-only
    configuration (bug#40069).
---
 lisp/gnus/gnus-sum.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 1b0220a..c5036c3 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7332,6 +7332,8 @@ If FORCE (the prefix), also save the .newsrc file(s)."
       (gnus-group-next-unread-group 1))
     (setq group-point (point))
     (gnus-article-stop-animations)
+    (unless leave-hidden
+      (gnus-configure-windows 'group 'force))
     (if temporary
        nil                             ;Nothing to do.
       (set-buffer buf)
@@ -7351,8 +7353,6 @@ 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)))



reply via email to

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