GNU bug report logs -
#42307
Feature request: Visual block attribute for overlays
Previous Next
Full log
Message #56 received at 42307 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 14 Jul 2020 17:01:43 +0000
> From: Gregory Heytings via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> In fact, I'm not entirerly sure that explaining (or implementing) that
> behavior with regexpes or character is the best thing to do. It's a
> matter of visual representation. Perhaps the following explanation is
> clearer (or more precise): draw the overlay with :extend t, and remove
> pixel columns on the left and on the right that are displayed in the same
> way as a whitespace character would have been displayed.
Well, it's not that simple. For starters, there's no "pixel columns"
in the display engine, at least not on GUI frames.
More to the point, I think the feature you requested will be not very
simple to implement, because it requires the display code to do
look-ahead: when it lays out leading whitespace, it should consider
characters after that. That calls for some complications, because the
display code basically inspects characters one by one and makes
(almost) all the decisions on the fly.
So someone will have fun implementing this. Patches welcome.
This bug report was last modified 4 years and 341 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.