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

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

bug#28248: 26.0.50; display-line-numbers does not affect window-width /


From: Steve Purcell
Subject: bug#28248: 26.0.50; display-line-numbers does not affect window-width / window-text-width
Date: Tue, 17 Oct 2017 20:31:56 +1300

On 17 Oct 2017, at 20:01, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> Any idea where that one-column
>> difference might be coming from?
>> 
>> https://github.com/purcell/page-break-lines/blob/610dbdc9d39a37912e2b8bfbd3e3d15c7e5d622f/page-break-lines.el#L128-L134
> 
> The space reserved for the continuation glyph?  Note that this can also happen
> on GUI frames, if the user disables the fringes.
> 
> Wouldn't window-text-width suit your needs better?


Perhaps, but it returns exactly the same value as window-width in both frame 
types.

Terminal:

window width: 118
window-width (pix): 118
window-text-width: 118
window-text-width (pix): 118
line-number-display-width: 3
line-number-display-width (pix): 5
margins: (nil)
fringes: (0 0 nil)
frame-char-width: 1

Graphical window (MacOS):

window width: 203
window-width (pix): 1421
window-text-width: 203
window-text-width (pix): 1421
line-number-display-width: 3
line-number-display-width (pix): 35
margins: (nil)
fringes: (8 8 nil)
frame-char-width: 7






reply via email to

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