# HG changeset patch # User Martin Rudalics # Date 1186552674 0 # Node ID b8c25f2005666072ad2556a052e6b66073168414 # Parent 7819402a99636e388c603c475f1b66e5c2043b08 (compilation-set-window-height): Use window-full-width-p instead of comparing frame-width and window-width. (compilation-find-buffer): Remove extra argument in call to compilation-buffer-internal-p. diff -r 7819402a9963 -r b8c25f200566 lisp/progmodes/compile.el --- a/lisp/progmodes/compile.el Wed Aug 08 05:51:36 2007 +0000 +++ b/lisp/progmodes/compile.el Wed Aug 08 05:57:54 2007 +0000 @@ -1153,7 +1153,7 @@ "Set the height of WINDOW according to `compilation-window-height'." (let ((height (buffer-local-value 'compilation-window-height (window-buffer window)))) (and height - (= (window-width window) (frame-width (window-frame window))) + (window-full-width-p window) ;; If window is alone in its frame, aside from a minibuffer, ;; don't change its height. (not (eq window (frame-root-window (window-frame window)))) @@ -1611,12 +1611,10 @@ (defun compilation-find-buffer (&optional avoid-current) "Return a compilation buffer. -If AVOID-CURRENT is nil, and -the current buffer is a compilation buffer, return it. -If AVOID-CURRENT is non-nil, return the current buffer -only as a last resort." - (if (and (compilation-buffer-internal-p (current-buffer)) - (not avoid-current)) +If AVOID-CURRENT is nil, and the current buffer is a compilation buffer, +return it. If AVOID-CURRENT is non-nil, return the current buffer only +as a last resort." + (if (and (compilation-buffer-internal-p) (not avoid-current)) (current-buffer) (next-error-find-buffer avoid-current 'compilation-buffer-internal-p)))