aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-01-18 05:44:13 +0000
committerRichard M. Stallman2002-01-18 05:44:13 +0000
commit88f7b76a1ca77a315cfbfe7f49dc799618bbd30d (patch)
treebec6d27444ae76bc7d5ecfc982b03197410dec76
parente58bff5990186f3920a384ef72d0a2dc69dad8ec (diff)
downloademacs-88f7b76a1ca77a315cfbfe7f49dc799618bbd30d.tar.gz
emacs-88f7b76a1ca77a315cfbfe7f49dc799618bbd30d.zip
Clarify how window-height relates to other things.
Describe window-body-height.
-rw-r--r--lispref/windows.texi15
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
1650This function returns the number of lines in @var{window}, including its 1650This function returns the number of lines in @var{window}, including
1651mode line. If @var{window} fills its entire frame, this is typically 1651its mode line and header line, if any. If @var{window} fills its
1652one less than the value of @code{frame-height} on that frame (since the 1652entire frame except for the echo area, and there is no tool bar, this
1653last line is always reserved for the minibuffer). 1653is typically one less than the value of @code{frame-height} on that
1654frame.
1654 1655
1655If @var{window} is @code{nil}, the function uses the selected window. 1656If @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
1676Like @code{window-height} but the value does not include the
1677mode 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
1674This function returns the number of columns in @var{window}. If 1681This 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