aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/display.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 2ebe872c362..005d31af05a 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -2045,6 +2045,23 @@ selected window. The value includes the line spacing of the line
2045(@pxref{Line Height}). 2045(@pxref{Line Height}).
2046@end defun 2046@end defun
2047 2047
2048When a buffer is displayed with line numbers (@pxref{Display Custom,,,
2049emacs, The GNU Emacs Manual}), it is sometimes useful to know the
2050width taken for displaying the line numbers. The following function
2051is for Lisp programs which need this information for layout
2052calculations.
2053
2054@defun line-number-display-width &optional pixelwise
2055This function returns the width used for displaying the line numbers
2056in the selected window. Optional argument @var{pixelwise}, if
2057non-@code{nil}, means return the value in pixels; otherwise the value
2058is returned in column units of the font defined for the
2059@code{line-number} face. If line numbers are not displayed in the
2060selected window, the value is zero. Use @code{with-selected-window}
2061(@pxref{Selecting Windows}) if you need this information about another
2062window.
2063@end defun
2064
2048 2065
2049@node Line Height 2066@node Line Height
2050@section Line Height 2067@section Line Height