]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around issue with (setq Man-notify-method 'aggressive)
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 4 Apr 2021 19:35:56 +0000 (21:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 4 Apr 2021 19:36:15 +0000 (21:36 +0200)
* lisp/man.el (Man-bgproc-sentinel): Check that the window still
exists before trying to select it (bug#38164).

lisp/man.el

index abb9bbad8fd9df62e9cf153f9976b8c46cd5f40a..9b941a2b3d2d89690ef675afade879165fe41223 100644 (file)
@@ -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