summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-10-04 00:41:18 +0000
committerGlenn Morris <rgm@gnu.org>2009-10-04 00:41:18 +0000
commitccafbf06960081e598e17174ab43e29a5e6b4019 (patch)
tree0b2b5a02be59ad757f77c8704924b7dffb600810 /lisp/window.el
parent02c6f0980b50c46eef5156062849c3630fec230d (diff)
downloademacs-ccafbf06960081e598e17174ab43e29a5e6b4019.tar.gz
(window-full-height-p): Add doc string.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el
index 9339247bfa8..c4dc973f94f 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -87,7 +87,11 @@ return value, use `window-text-height' instead."
(if mode-line-format 1 0)
(if header-line-format 1 0))))))
+;; See discussion in bug#4543.
(defun window-full-height-p (&optional window)
+ "Return non-nil if WINDOW is not the result of a vertical split.
+WINDOW defaults to the selected window. (This function is not
+appropriate for minibuffers.)"
(unless window
(setq window (selected-window)))
(= (window-height window)