From: Lars Ingebrigtsen Date: Sun, 19 Jul 2020 13:46:17 +0000 (+0200) Subject: Do window configuration change before killing Gnus buffers on exit X-Git-Tag: emacs-28.0.90~6969 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2eec81fcdd6811953c082ff34f813160a721cf3;p=emacs.git 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). --- diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 1b0220a0f06..c5036c32d57 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)))