Mercurial > emacs
comparison lispref/windows.texi @ 42819:401375284bf0
Clarify how window-height relates to other things.
Describe window-body-height.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Jan 2002 05:44:13 +0000 |
parents | 236397d27903 |
children | 589485c2358e |
comparison
equal
deleted
inserted
replaced
42818:55ed8ccce828 | 42819:401375284bf0 |
---|---|
1645 characters that separates side-by-side windows. | 1645 characters that separates side-by-side windows. |
1646 | 1646 |
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 |
1657 @example | 1658 @example |
1658 @group | 1659 @group |
1666 @group | 1667 @group |
1667 (window-height) | 1668 (window-height) |
1668 @result{} 11 | 1669 @result{} 11 |
1669 @end group | 1670 @end group |
1670 @end example | 1671 @end example |
1672 @end defun | |
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). | |
1671 @end defun | 1678 @end defun |
1672 | 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 |