aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-03 18:26:39 +0200
committerEli Zaretskii2015-12-03 18:26:39 +0200
commite011b22d208f8a2b163721bd2d009b792eb7032c (patch)
tree24a642c3beccd3b37b63a3ed8aa421d63f73f3d5 /doc
parent1e1aabbc0931b96d6749839c0d25a23377e3a45b (diff)
downloademacs-e011b22d208f8a2b163721bd2d009b792eb7032c.tar.gz
emacs-e011b22d208f8a2b163721bd2d009b792eb7032c.zip
Document 'window-max-chars-per-line'
* doc/lispref/windows.texi (Window Sizes): Document 'window-max-chars-per-line'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/windows.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index ead2f7a52f6..5c7947eeca6 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -635,6 +635,22 @@ Functions for retrieving the height and/or width of window dividers
635(@pxref{Scroll Bars}), and display margins (@pxref{Display Margins}) are 635(@pxref{Scroll Bars}), and display margins (@pxref{Display Margins}) are
636described in the corresponding sections. 636described in the corresponding sections.
637 637
638If your Lisp program needs to make layout decisions, you will find the
639following function useful:
640
641@defun window-max-chars-per-line &optional window face
642This function returns the number of characters displayed in the
643specified @var{face} in the specified @var{window} (which must be a
644live window). If @var{face} was remapped (@pxref{Face Remapping}),
645the information is returned for the remapped face. If omitted or
646@code{nil}, @var{face} defaults to the default face, and @var{window}
647defaults to the selected window. Unlike @code{window-body-width},
648this function accounts for the actual size of the @var{face}'s font,
649instead of working in units of frame's canonical character width. It
650also accounts for space used by the continuation glyph, if
651@var{window} lacks one or both of its fringes.
652@end defun
653
638@cindex fixed-size window 654@cindex fixed-size window
639@vindex window-min-height 655@vindex window-min-height
640@vindex window-min-width 656@vindex window-min-width