|
From: | Jim Porter |
Subject: | Re: Variable pitch text filling |
Date: | Wed, 1 Dec 2021 11:30:01 -0800 |
On 12/1/2021 10:19 AM, Lars Ingebrigtsen wrote:
I hope that whatever the implementation of the U:--- thing, the width of each element doesn't change when you click on it. That would make it harder to click multiple times on the same element (e.g. if you mistakenly clicked and want to undo the change by clicking again). In the case of "%", I mentioned this in the other thread about it[1]:Eli Zaretskii <eliz@gnu.org> writes:Why would you need the overall min-width, if each one of the "-" is as wide as "*" or "%" (whichever is wider)?That's not what we're going for, I think? The "-" should be made as wide as a "normal character", but "%" is often wider.
This points to a similar problem I mentioned, but in reverse: If a buffer is currently read-only and I click the first "%", it will change to "-" and thus become narrower. Depending on where my mouse pointer is, that could mean it's now hovering over the "modified" indicator, so if I click again, I end up changing the "modified" state, not the "read-only" state.
Currently, the "-" is much narrower, so the change in size is pretty significant. However, even a small change in size could cause this issue depending on where exactly the mouse pointer is. (Personally, I prefer the U:--- thing to be monospace since it doesn't have these issues and Just Works today, but I wouldn't necessarily oppose an implementation that worked just as well for variable-width fonts.)
- Jim [1] https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01996.html
[Prev in Thread] | Current Thread | [Next in Thread] |