]> git.eshelyaron.com Git - emacs.git/commitdiff
Clarify how window-height relates to other things.
authorRichard M. Stallman <rms@gnu.org>
Fri, 18 Jan 2002 05:44:13 +0000 (05:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 18 Jan 2002 05:44:13 +0000 (05:44 +0000)
Describe window-body-height.

lispref/windows.texi

index b6d215f50c87664b6cc3e3f2de079f55f58c6c86..9ebaef61740c4bb361bb1270076cbd97e9f7000d 100644 (file)
@@ -1647,10 +1647,11 @@ characters that separates side-by-side windows.
   The following three functions return size information about a window:
 
 @defun window-height &optional window
-This function returns the number of lines in @var{window}, including its
-mode line.  If @var{window} fills its entire frame, this is typically
-one less than the value of @code{frame-height} on that frame (since the
-last line is always reserved for the minibuffer).
+This function returns the number of lines in @var{window}, including
+its mode line and header line, if any.  If @var{window} fills its
+entire frame except for the echo area, and there is no tool bar, this
+is typically one less than the value of @code{frame-height} on that
+frame.
 
 If @var{window} is @code{nil}, the function uses the selected window.
 
@@ -1670,6 +1671,12 @@ If @var{window} is @code{nil}, the function uses the selected window.
 @end example
 @end defun
 
+@tindex window-body-height
+@defun window-body-height &optional window
+Like @code{window-height} but the value does not include the 
+mode line (if any) or the header line (if any).
+@end defun
+
 @defun window-width &optional window
 This function returns the number of columns in @var{window}.  If
 @var{window} fills its entire frame, this is the same as the value of