old window only if it's still live.
+2001-10-22 Gerd Moellmann <gerd@gnu.org>
+
+ * progmodes/compile.el (compilation-set-window-height): Select
+ old window only if it's still live.
+
2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* help-mode.el (help-buffer): Remove debugging code.
(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)))