emacs-diffs
[Top][All Lists]
Advanced

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

master c967f55: Work around issue with (setq Man-notify-method 'aggressi


From: Lars Ingebrigtsen
Subject: master c967f55: Work around issue with (setq Man-notify-method 'aggressive)
Date: Sun, 4 Apr 2021 15:36:21 -0400 (EDT)

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

    Work around issue with (setq Man-notify-method 'aggressive)
    
    * lisp/man.el (Man-bgproc-sentinel): Check that the window still
    exists before trying to select it (bug#38164).
---
 lisp/man.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/man.el b/lisp/man.el
index abb9bba..9b941a2 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1503,7 +1503,9 @@ manpage command."
               (quit-restore-window
                (get-buffer-window Man-buffer t) 'kill)
               ;; Ensure that we end up in the correct window.
-              (select-window (old-selected-window)))
+              (let ((old-window (old-selected-window)))
+                (when (window-live-p old-window)
+                  (select-window old-window))))
           (kill-buffer Man-buffer)))
 
       (when message



reply via email to

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