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: Eli Zaretskii
Subject: bug#28248: 26.0.50; display-line-numbers does not affect window-width / window-text-width
Date: Sun, 27 Aug 2017 17:32:30 +0300

> From: Steve Purcell <steve@sanityinc.com>
> Date: Sun, 27 Aug 2017 17:40:04 +1200
> 
> When display-line-numbers mode is enabled, this has no effect on the
> return value of window-width or window-text-width

This was discussed at the time, and the decision was not to change the
values those functions return, as we didn't see the need, and similar
display features don't do that as well.

> and there is also no variable which contains the current width of
> the line numbers.  This all means there is no way to determine the
> width of the text area of the window.

Yes, there is.  From NEWS:

  Lisp programs that need to know how much screen estate is used up for
  line-number display in a window can use the new function
  'line-number-display-width'.

If this doesn't help you solve your problems, please tell the details.

> (PS. nice work on the functionality itself!)

Thanks.





reply via email to

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