Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0c5413c8
Commit
0c5413c8
authored
Oct 10, 2009
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Size of Window): The relationship between window and frame heights is
not so simple. (Bug#4535) Mention window-full-height-p.
parent
6d6a5b7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+6
-0
doc/lispref/windows.texi
doc/lispref/windows.texi
+16
-6
No files found.
doc/lispref/ChangeLog
View file @
0c5413c8
2009
-
10
-
10
Glenn
Morris
<
rgm
@
gnu
.
org
>
*
windows
.
texi
(
Size
of
Window
):
The
relationship
between
window
and
frame
heights
is
not
so
simple
.
(
Bug
#
4535
)
Mention
window
-
full
-
height
-
p
.
2009
-
10
-
07
Stefan
Monnier
<
monnier
@
iro
.
umontreal
.
ca
>
*
positions
.
texi
(
Text
Lines
):
Remove
goto
-
line
,
since
it
shouldn
't be
...
...
doc/lispref/windows.texi
View file @
0c5413c8
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001,
@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
@c 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
@c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../../info/windows
@node Windows, Frames, Buffers, Top
...
...
@@ -1945,11 +1946,14 @@ 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 and header line, if any. If @var{window} fills its entire
frame except for the echo area, this is typically one less than the
value of @code{frame-height} on that frame. The default for
@var{window} is the selected window.
This function returns the number of lines in @var{window} (by default
the selected window), including any mode line and header line.
The result is almost always less than the value of @code{frame-height}
for the associated frame, because the latter also includes any echo
area. Depending on the toolkit in use, the frame height can also
include the menu bar and tool bar (@pxref{Size and Position}).
Therefore in general it is not straightforward to compare window and
frame heights (see @code{window-full-height-p} below).
@example
@group
...
...
@@ -1972,6 +1976,12 @@ 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-full-height-p &optional window
This function returns non-@code{nil} if @var{window} is as tall as the
frame that contains it. The default for @var{window} is the selected
window.
@end defun
@defun window-width &optional window
This function returns the number of columns in @var{window}. The
default for @var{window} is the selected window.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment