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 Eli Zaretskii <eliz@is.elta.co.il>
* textmodes/sgml-mode.el (sgml-mode-map): Bind 8-bit codes above
(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)))