aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-10-10 23:43:03 +0000
committerGlenn Morris2009-10-10 23:43:03 +0000
commit0c5413c811be1341e4f8fd0d35d5e4b8b5e103dc (patch)
tree66bb0eeed749bec704b36ec85b917eaabd147a62
parent6d6a5b7e51bdfb9ba097bb9f70309eaf236cdeb5 (diff)
downloademacs-0c5413c811be1341e4f8fd0d35d5e4b8b5e103dc.tar.gz
emacs-0c5413c811be1341e4f8fd0d35d5e4b8b5e103dc.zip
(Size of Window): The relationship between window and frame heights is
not so simple. (Bug#4535) Mention window-full-height-p.
-rw-r--r--doc/lispref/ChangeLog6
-rw-r--r--doc/lispref/windows.texi22
2 files changed, 22 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 83113a73acf..6f9ef826f3f 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,9 @@
12009-10-10 Glenn Morris <rgm@gnu.org>
2
3 * windows.texi (Size of Window): The relationship between window and
4 frame heights is not so simple. (Bug#4535)
5 Mention window-full-height-p.
6
12009-10-07 Stefan Monnier <monnier@iro.umontreal.ca> 72009-10-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * positions.texi (Text Lines): Remove goto-line, since it shouldn't be 9 * positions.texi (Text Lines): Remove goto-line, since it shouldn't be
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 372725c1d39..b33748993b4 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -1,7 +1,8 @@
1@c -*-texinfo-*- 1@c -*-texinfo-*-
2@c This is part of the GNU Emacs Lisp Reference Manual. 2@c This is part of the GNU Emacs Lisp Reference Manual.
3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001, 3@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001,
4@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 4@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5@c Free Software Foundation, Inc.
5@c See the file elisp.texi for copying conditions. 6@c See the file elisp.texi for copying conditions.
6@setfilename ../../info/windows 7@setfilename ../../info/windows
7@node Windows, Frames, Buffers, Top 8@node Windows, Frames, Buffers, Top
@@ -1945,11 +1946,14 @@ characters that separates side-by-side windows.
1945 The following three functions return size information about a window: 1946 The following three functions return size information about a window:
1946 1947
1947@defun window-height &optional window 1948@defun window-height &optional window
1948This function returns the number of lines in @var{window}, including its 1949This function returns the number of lines in @var{window} (by default
1949mode line and header line, if any. If @var{window} fills its entire 1950the selected window), including any mode line and header line.
1950frame except for the echo area, this is typically one less than the 1951The result is almost always less than the value of @code{frame-height}
1951value of @code{frame-height} on that frame. The default for 1952for the associated frame, because the latter also includes any echo
1952@var{window} is the selected window. 1953area. Depending on the toolkit in use, the frame height can also
1954include the menu bar and tool bar (@pxref{Size and Position}).
1955Therefore in general it is not straightforward to compare window and
1956frame heights (see @code{window-full-height-p} below).
1953 1957
1954@example 1958@example
1955@group 1959@group
@@ -1972,6 +1976,12 @@ Like @code{window-height} but the value does not include the
1972mode line (if any) or the header line (if any). 1976mode line (if any) or the header line (if any).
1973@end defun 1977@end defun
1974 1978
1979@defun window-full-height-p &optional window
1980This function returns non-@code{nil} if @var{window} is as tall as the
1981frame that contains it. The default for @var{window} is the selected
1982window.
1983@end defun
1984
1975@defun window-width &optional window 1985@defun window-width &optional window
1976This function returns the number of columns in @var{window}. The 1986This function returns the number of columns in @var{window}. The
1977default for @var{window} is the selected window. 1987default for @var{window} is the selected window.