diff options
| author | Richard M. Stallman | 2002-01-18 05:44:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-01-18 05:44:13 +0000 |
| commit | 88f7b76a1ca77a315cfbfe7f49dc799618bbd30d (patch) | |
| tree | bec6d27444ae76bc7d5ecfc982b03197410dec76 | |
| parent | e58bff5990186f3920a384ef72d0a2dc69dad8ec (diff) | |
| download | emacs-88f7b76a1ca77a315cfbfe7f49dc799618bbd30d.tar.gz emacs-88f7b76a1ca77a315cfbfe7f49dc799618bbd30d.zip | |
Clarify how window-height relates to other things.
Describe window-body-height.
| -rw-r--r-- | lispref/windows.texi | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lispref/windows.texi b/lispref/windows.texi index b6d215f50c8..9ebaef61740 100644 --- a/lispref/windows.texi +++ b/lispref/windows.texi | |||
| @@ -1647,10 +1647,11 @@ characters that separates side-by-side windows. | |||
| 1647 | The following three functions return size information about a window: | 1647 | The following three functions return size information about a window: |
| 1648 | 1648 | ||
| 1649 | @defun window-height &optional window | 1649 | @defun window-height &optional window |
| 1650 | This function returns the number of lines in @var{window}, including its | 1650 | This function returns the number of lines in @var{window}, including |
| 1651 | mode line. If @var{window} fills its entire frame, this is typically | 1651 | its mode line and header line, if any. If @var{window} fills its |
| 1652 | one less than the value of @code{frame-height} on that frame (since the | 1652 | entire frame except for the echo area, and there is no tool bar, this |
| 1653 | last line is always reserved for the minibuffer). | 1653 | is typically one less than the value of @code{frame-height} on that |
| 1654 | frame. | ||
| 1654 | 1655 | ||
| 1655 | If @var{window} is @code{nil}, the function uses the selected window. | 1656 | If @var{window} is @code{nil}, the function uses the selected window. |
| 1656 | 1657 | ||
| @@ -1670,6 +1671,12 @@ If @var{window} is @code{nil}, the function uses the selected window. | |||
| 1670 | @end example | 1671 | @end example |
| 1671 | @end defun | 1672 | @end defun |
| 1672 | 1673 | ||
| 1674 | @tindex window-body-height | ||
| 1675 | @defun window-body-height &optional window | ||
| 1676 | Like @code{window-height} but the value does not include the | ||
| 1677 | mode line (if any) or the header line (if any). | ||
| 1678 | @end defun | ||
| 1679 | |||
| 1673 | @defun window-width &optional window | 1680 | @defun window-width &optional window |
| 1674 | This function returns the number of columns in @var{window}. If | 1681 | This function returns the number of columns in @var{window}. If |
| 1675 | @var{window} fills its entire frame, this is the same as the value of | 1682 | @var{window} fills its entire frame, this is the same as the value of |