GNU bug report logs -
#42307
Feature request: Visual block attribute for overlays
Previous Next
Full log
Message #20 received at 42307 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
>
>> If you take the algorithm, it would start on the "u", extend to the
>> place it extends on the picture on the right, and on the next lines two
>> whitespace characters on the left would not be displayed as green
>> anymore (that is, the green area would start under the "f" of "(if".
>
> Why is that? That starting position of the second line's highlight
> doesn't correspond to anything "natural", does it? I would expect
> either that it starts as it does now, directly under the `(' of the
> first line, or directly under the `u' that started the overlay.
>
In fact it does, the overlay goes upwards above the comment below the "f"
of "(if". I attach a new picture between two arbitrary points that are
not brackets. I don't see any other way to define in simple terms how the
whitespace on the left should be trimmed. The "visualblock" would thus
highlight all the text of the block between overlay-begin and overlay-end,
and would be a rectangle except for the first and last lines, that is,
except before overlay-begin and after overlay-end.
>
> In any case, overlays, and highlighting, are not just for code.
>
Indeed. I think the proposed "visualblock" attribute is general and
simple enough that it could be used not only for code. E.g. it can be
used to highlight a portion of text with whitespace on the left, a TODO
item, say.
Gregory
[visualblock-2.png (image/png, attachment)]
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.