emacs-devel
[Top][All Lists]
Advanced

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

Re: master 91418d27e9: Add new functions for computing character metrics


From: Stefan Monnier
Subject: Re: master 91418d27e9: Add new functions for computing character metrics for windows
Date: Sat, 30 Apr 2022 09:33:58 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen [2022-04-30 13:12:55] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> BTW, I notice that `window-max-characters-per-line` doesn't deduct the
>> space used by `display-line-number-mode`, whereas I'd expect most(?)
>> users of that function to want to take this into account.
> We could add that, but display-line-number-mode is per buffer, while
> this is a window function, so it doesn't quite seem natural.

I know.  And it's worse because that width can vary over time.

But admittedly, in most cases you can use
`window-max-characters-per-line only` as a heuristic because of the
effect of proportional fonts, compositions, and faces applied to
specific parts of the text.


        Stefan




reply via email to

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