From 5f4a8cc9fb7863d6dcb84a0d198369319b7394f0 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 18 Jan 2000 06:13:05 +0000 Subject: [PATCH] (gnus-summary-exit): Don't recenter the group buffer if it is called non-interactively. --- lisp/gnus-sum.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index adfbaba..82e9ee2 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -5441,7 +5441,8 @@ If FORCE (the prefix), also save the .newsrc file(s)." (progn (goto-char group-point) (gnus-configure-windows 'group 'force) - (unless (pos-visible-in-window-p) + (when (and (interactive-p) + (not (pos-visible-in-window-p))) (recenter))) (gnus-handle-ephemeral-exit quit-config)) ;; Clear the current group name. -- 1.7.10.4