aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-10-04 00:40:16 +0000
committerGlenn Morris2009-10-04 00:40:16 +0000
commit02c6f0980b50c46eef5156062849c3630fec230d (patch)
tree582afa444c1694fa952408605ced1b09cc7a506f
parent68972a4f8fa503d942d0a2a40e11893dfc694c8c (diff)
downloademacs-02c6f0980b50c46eef5156062849c3630fec230d.tar.gz
emacs-02c6f0980b50c46eef5156062849c3630fec230d.zip
Martin Rudalics <rudalics at gmx.at>
(window-full-height-p): New function. (Bug#4543)
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/window.el6
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2bddb5f6da2..441fd7d47ec 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-10-04 Martin Rudalics <rudalics@gmx.at>
2
3 * window.el (window-full-height-p): New function. (Bug#4543)
4
12009-10-03 Chong Yidong <cyd@stupidchicken.com> 52009-10-03 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * cedet/srecode/insert.el: Require srecode/args. 7 * cedet/srecode/insert.el: Require srecode/args.
diff --git a/lisp/window.el b/lisp/window.el
index a4931d446a1..9339247bfa8 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -87,6 +87,12 @@ return value, use `window-text-height' instead."
87 (if mode-line-format 1 0) 87 (if mode-line-format 1 0)
88 (if header-line-format 1 0)))))) 88 (if header-line-format 1 0))))))
89 89
90(defun window-full-height-p (&optional window)
91 (unless window
92 (setq window (selected-window)))
93 (= (window-height window)
94 (window-height (frame-root-window (window-frame window)))))
95
90(defun one-window-p (&optional nomini all-frames) 96(defun one-window-p (&optional nomini all-frames)
91 "Return non-nil if the selected window is the only window. 97 "Return non-nil if the selected window is the only window.
92Optional arg NOMINI non-nil means don't count the minibuffer 98Optional arg NOMINI non-nil means don't count the minibuffer