diff options
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/display.texi | 17 |
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 | ||
| 2048 | When a buffer is displayed with line numbers (@pxref{Display Custom,,, | ||
| 2049 | emacs, The GNU Emacs Manual}), it is sometimes useful to know the | ||
| 2050 | width taken for displaying the line numbers. The following function | ||
| 2051 | is for Lisp programs which need this information for layout | ||
| 2052 | calculations. | ||
| 2053 | |||
| 2054 | @defun line-number-display-width &optional pixelwise | ||
| 2055 | This function returns the width used for displaying the line numbers | ||
| 2056 | in the selected window. Optional argument @var{pixelwise}, if | ||
| 2057 | non-@code{nil}, means return the value in pixels; otherwise the value | ||
| 2058 | is returned in column units of the font defined for the | ||
| 2059 | @code{line-number} face. If line numbers are not displayed in the | ||
| 2060 | selected window, the value is zero. Use @code{with-selected-window} | ||
| 2061 | (@pxref{Selecting Windows}) if you need this information about another | ||
| 2062 | window. | ||
| 2063 | @end defun | ||
| 2064 | |||
| 2048 | 2065 | ||
| 2049 | @node Line Height | 2066 | @node Line Height |
| 2050 | @section Line Height | 2067 | @section Line Height |