aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorTitus von der Malsburg2022-04-29 15:14:09 +0200
committerLars Ingebrigtsen2022-04-29 15:14:09 +0200
commit91418d27e9c528fd9062c74a4ce58b657366a8c5 (patch)
treea3086a3164d75c103ac812c34dd1f7e114e09450 /src/window.c
parentfa52782f5c4eaef7138534766dfc8a29465785b2 (diff)
downloademacs-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.c4
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
1079visible, that column is not counted. 1079visible, that column is not counted.
1080 1080
1081Note that the returned value includes the column reserved for the 1081Note that the returned value includes the column reserved for the
1082continuation glyph. */) 1082continuation glyph.
1083
1084Also 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),