aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-08-08 05:57:54 +0000
committerMartin Rudalics2007-08-08 05:57:54 +0000
commit0dad3dfecc893cb8807154f8d6e5559e922ddc72 (patch)
tree78338131a78bf211acecec7b3d107d67c55ced19
parent70ad3da9ecdb3f7b149f78d436913f7352101093 (diff)
downloademacs-0dad3dfecc893cb8807154f8d6e5559e922ddc72.tar.gz
emacs-0dad3dfecc893cb8807154f8d6e5559e922ddc72.zip
(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.
-rw-r--r--lisp/progmodes/compile.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 529194ffa7e..fcb20ede56d 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1153,7 +1153,7 @@ exited abnormally with code %d\n"
1153 "Set the height of WINDOW according to `compilation-window-height'." 1153 "Set the height of WINDOW according to `compilation-window-height'."
1154 (let ((height (buffer-local-value 'compilation-window-height (window-buffer window)))) 1154 (let ((height (buffer-local-value 'compilation-window-height (window-buffer window))))
1155 (and height 1155 (and height
1156 (= (window-width window) (frame-width (window-frame window))) 1156 (window-full-width-p window)
1157 ;; If window is alone in its frame, aside from a minibuffer, 1157 ;; If window is alone in its frame, aside from a minibuffer,
1158 ;; don't change its height. 1158 ;; don't change its height.
1159 (not (eq window (frame-root-window (window-frame window)))) 1159 (not (eq window (frame-root-window (window-frame window))))
@@ -1611,12 +1611,10 @@ Use this command in a compilation log buffer. Sets the mark at point there."
1611 1611
1612(defun compilation-find-buffer (&optional avoid-current) 1612(defun compilation-find-buffer (&optional avoid-current)
1613 "Return a compilation buffer. 1613 "Return a compilation buffer.
1614If AVOID-CURRENT is nil, and 1614If AVOID-CURRENT is nil, and the current buffer is a compilation buffer,
1615the current buffer is a compilation buffer, return it. 1615return it. If AVOID-CURRENT is non-nil, return the current buffer only
1616If AVOID-CURRENT is non-nil, return the current buffer 1616as a last resort."
1617only as a last resort." 1617 (if (and (compilation-buffer-internal-p) (not avoid-current))
1618 (if (and (compilation-buffer-internal-p (current-buffer))
1619 (not avoid-current))
1620 (current-buffer) 1618 (current-buffer)
1621 (next-error-find-buffer avoid-current 'compilation-buffer-internal-p))) 1619 (next-error-find-buffer avoid-current 'compilation-buffer-internal-p)))
1622 1620