diff options
| author | Glenn Morris | 2009-10-04 00:40:16 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-10-04 00:40:16 +0000 |
| commit | 02c6f0980b50c46eef5156062849c3630fec230d (patch) | |
| tree | 582afa444c1694fa952408605ced1b09cc7a506f | |
| parent | 68972a4f8fa503d942d0a2a40e11893dfc694c8c (diff) | |
| download | emacs-02c6f0980b50c46eef5156062849c3630fec230d.tar.gz emacs-02c6f0980b50c46eef5156062849c3630fec230d.zip | |
Martin Rudalics <rudalics at gmx.at>
(window-full-height-p): New function. (Bug#4543)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/window.el | 6 |
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 @@ | |||
| 1 | 2009-10-04 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.el (window-full-height-p): New function. (Bug#4543) | ||
| 4 | |||
| 1 | 2009-10-03 Chong Yidong <cyd@stupidchicken.com> | 5 | 2009-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. |
| 92 | Optional arg NOMINI non-nil means don't count the minibuffer | 98 | Optional arg NOMINI non-nil means don't count the minibuffer |