bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29597: 26.0.90; line-number-display-width returns incorrect width


From: Noam Postavsky
Subject: bug#29597: 26.0.90; line-number-display-width returns incorrect width
Date: Thu, 07 Dec 2017 21:00:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)

Paul Rankin <hello@paulwrankin.com> writes:

> I had a look in the source of display-line-numbers.el in the repo but cannot 
> find the definition of line-number-display-width.

Here's the help text:

    line-number-display-width is a built-in function in ‘C source code’.

    (line-number-display-width &optional PIXELWISE)

    Return the width used for displaying line numbers in the selected window.
    If optional argument PIXELWISE is the symbol ‘columns’, return the width
    in units of the frame’s canonical character width.  In this case, the
    value is a float.
    If optional argument PIXELWISE is t or any other non-nil value, return
    the width as an integer number of pixels.
    Otherwise return the value as an integer number of columns of the face
    used to display line numbers, ‘line-number’.  Note that in the latter
    case, the value doesn’t include the 2 columns used for padding the
    numbers on display.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]