diff options
| author | Glenn Morris | 2009-10-10 23:43:03 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-10-10 23:43:03 +0000 |
| commit | 0c5413c811be1341e4f8fd0d35d5e4b8b5e103dc (patch) | |
| tree | 66bb0eeed749bec704b36ec85b917eaabd147a62 | |
| parent | 6d6a5b7e51bdfb9ba097bb9f70309eaf236cdeb5 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 22 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-10-07 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2009-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 |
| 1948 | This function returns the number of lines in @var{window}, including its | 1949 | This function returns the number of lines in @var{window} (by default |
| 1949 | mode line and header line, if any. If @var{window} fills its entire | 1950 | the selected window), including any mode line and header line. |
| 1950 | frame except for the echo area, this is typically one less than the | 1951 | The result is almost always less than the value of @code{frame-height} |
| 1951 | value of @code{frame-height} on that frame. The default for | 1952 | for the associated frame, because the latter also includes any echo |
| 1952 | @var{window} is the selected window. | 1953 | area. Depending on the toolkit in use, the frame height can also |
| 1954 | include the menu bar and tool bar (@pxref{Size and Position}). | ||
| 1955 | Therefore in general it is not straightforward to compare window and | ||
| 1956 | frame 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 | |||
| 1972 | mode line (if any) or the header line (if any). | 1976 | mode 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 | ||
| 1980 | This function returns non-@code{nil} if @var{window} is as tall as the | ||
| 1981 | frame that contains it. The default for @var{window} is the selected | ||
| 1982 | window. | ||
| 1983 | @end defun | ||
| 1984 | |||
| 1975 | @defun window-width &optional window | 1985 | @defun window-width &optional window |
| 1976 | This function returns the number of columns in @var{window}. The | 1986 | This function returns the number of columns in @var{window}. The |
| 1977 | default for @var{window} is the selected window. | 1987 | default for @var{window} is the selected window. |