From e38e28391911881e6e82688dd05d8b95a04ee4d6 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 22 Oct 2001 18:48:09 +0000 Subject: [PATCH] (compilation-set-window-height): Select old window only if it's still live. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/compile.el | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cbc9f9d4e1a..7fc67f36049 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-10-22 Gerd Moellmann + + * progmodes/compile.el (compilation-set-window-height): Select + old window only if it's still live. + 2001-10-22 Pavel Jan,Bm(Bk * help-mode.el (help-buffer): Remove debugging code. diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index da4d398ec22..9faba001c35 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el @@ -937,7 +937,10 @@ exited abnormally with code %d\n" (select-window window) (enlarge-window (- compilation-window-height (window-height)))) - (select-window w)))))) + ;; The enlarge-window above may have deleted W, if + ;; compilation-window-height is large enough. + (when (window-live-p w) + (select-window w))))))) (defvar compilation-minor-mode-map (let ((map (make-sparse-keymap))) -- 2.39.5