diff options
| author | Joakim Verona | 2011-11-04 13:06:17 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-04 13:06:17 +0100 |
| commit | c823c667cd00b9d8036ce06b943f58f3f4efd7d9 (patch) | |
| tree | 44cba3ad000f3f99215f7d742a9dc579516c4fe3 /doc | |
| parent | 19e28bef7fdd7e74084b5ace141e067b491b50fd (diff) | |
| parent | 89bd5ee15acb93aefd403f3c76d1aff57520608b (diff) | |
| download | emacs-c823c667cd00b9d8036ce06b943f58f3f4efd7d9.tar.gz emacs-c823c667cd00b9d8036ce06b943f58f3f4efd7d9.zip | |
upstream
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 14 |
2 files changed, 18 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1e86e07998c..2da562bdcfb 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * windows.texi (Window Sizes): Mention in the doc string that the | ||
| 4 | return values of `window-body-height' and `window-body-width' are | ||
| 5 | in frame's canonical units. (Bug#9949) | ||
| 6 | |||
| 1 | 2011-10-30 Martin Rudalics <rudalics@gmx.at> | 7 | 2011-10-30 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | * windows.texi (Windows and Frames): Remove "iso-" infix from | 9 | * windows.texi (Windows and Frames): Remove "iso-" infix from |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 37679aa4a0b..bd20f5d8f44 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -563,8 +563,18 @@ window's body width. | |||
| 563 | 563 | ||
| 564 | @cindex body size of a window | 564 | @cindex body size of a window |
| 565 | @cindex window body size | 565 | @cindex window body size |
| 566 | The following functions retrieve height and width of the body of a live | 566 | @cindex canonical units of window/frame size |
| 567 | window: | 567 | The following functions retrieve height and width of the body of a |
| 568 | live window. Note that the values these functions return are measured | ||
| 569 | in @dfn{canonical units}, i.e.@: for the default frame's face. If the | ||
| 570 | window shows some characters with non-default face, e.g., if the font | ||
| 571 | of some characters is larger or smaller than the default font, the | ||
| 572 | values returned by these functions will not match the actual number of | ||
| 573 | lines or characters per line shown in the window. To get the actual | ||
| 574 | number of columns and lines, move to the last character in the line | ||
| 575 | (e.g., with @code{end-of-visual-line}) or to the last line of the | ||
| 576 | window (e.g., with @code{window-end}), and use @code{posn-at-point} to | ||
| 577 | find the line or column there. | ||
| 568 | 578 | ||
| 569 | @defun window-body-size &optional window horizontal | 579 | @defun window-body-size &optional window horizontal |
| 570 | This function returns the number of lines of @var{window}'s text area. | 580 | This function returns the number of lines of @var{window}'s text area. |