diff options
| author | Titus von der Malsburg | 2022-04-29 15:14:09 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-04-29 15:14:09 +0200 |
| commit | 91418d27e9c528fd9062c74a4ce58b657366a8c5 (patch) | |
| tree | a3086a3164d75c103ac812c34dd1f7e114e09450 /src/window.c | |
| parent | fa52782f5c4eaef7138534766dfc8a29465785b2 (diff) | |
| download | emacs-91418d27e9c528fd9062c74a4ce58b657366a8c5.tar.gz emacs-91418d27e9c528fd9062c74a4ce58b657366a8c5.zip | |
Add new functions for computing character metrics for windows
* doc/lispref/display.texi (Size of Displayed Text): Document the
char functions.
* doc/lispref/windows.texi (Window Sizes): Document
window-max-characters-per-line.
* lisp/window.el (window-char-pixel-width)
(window-char-pixel-height)
(window-max-characters-per-line): New functions (bug#19395).
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index ad0f54000c0..cfe3977428b 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1079,7 +1079,9 @@ means that if a column at the right of the text area is only partially | |||
| 1079 | visible, that column is not counted. | 1079 | visible, that column is not counted. |
| 1080 | 1080 | ||
| 1081 | Note that the returned value includes the column reserved for the | 1081 | Note that the returned value includes the column reserved for the |
| 1082 | continuation glyph. */) | 1082 | continuation glyph. |
| 1083 | |||
| 1084 | Also see `window-max-characters-per-line'. */) | ||
| 1083 | (Lisp_Object window, Lisp_Object pixelwise) | 1085 | (Lisp_Object window, Lisp_Object pixelwise) |
| 1084 | { | 1086 | { |
| 1085 | return make_fixnum (window_body_width (decode_live_window (window), | 1087 | return make_fixnum (window_body_width (decode_live_window (window), |