aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-10-22 18:48:09 +0000
committerGerd Moellmann <[email protected]>2001-10-22 18:48:09 +0000
commite38e28391911881e6e82688dd05d8b95a04ee4d6 (patch)
tree58a283d23aea24db52e4f1b2672b17f9cbdf94c5 /lisp/progmodes/compile.el
parentbc171472fa0af653f8e914c36c1b45f991a46305 (diff)
(compilation-set-window-height): Select
old window only if it's still live.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index da4d398ec2..9faba001c3 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)))