GNU bug report logs -
#65896
30.0.50; folding text with text properties prevents background from extending past the newline
Previous Next
Reported by: StrawberryTea <look <at> strawberrytea.xyz>
Date: Tue, 12 Sep 2023 18:02:01 UTC
Severity: wishlist
Found in version 30.0.50
Done: Ihor Radchenko <yantar92 <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #130 received at 65896 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Okay. I have posted the code from earlier in the Backline package’s issue
tracker so hopefully I or someone else will pick up on this Elisp solution and
improve it down the road and get it into Backline, then eventually Org and/or
Outline.
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: StrawberryTea <look <at> strawberrytea.xyz>
>> Cc: juri <at> linkov.net, kevin.legouguec <at> gmail.com, 65896 <at> debbugs.gnu.org,
>> yantar92 <at> posteo.net
>> Date: Sun, 01 Oct 2023 23:28:55 -0500
>>
>> Sure. Basically, I want :extend to apply to a line with a folded region even
>> though the newline at the end itself does not have the :extend property. So I
>> want the extend property to somehow propagate across a line to the newline at
>> the end, even if it does not have the :extend property. This would allow for
>> :extend to work as expected when we have a a folded region that extends across
>> multiple lines but the end of the folded region does not have the :extend
>> property.
>
> You say “propagate the :extend property”, but you really mean
> “propagate the face”, right? Because propagating :extend alone might
> then show the wrong face extended, as the newline might have a
> different face.
>
> Anyway, this kind of thing can be easily done by the command that
> folds the text: it could place a face with a suitably computed :extend
> attribute on that newline. Right?
>
> Changing the display engine to do something like that will be much
> harder, or even impossible, since the display engine currently
> basically ignores the faces of invisible text, and the case of folded
> text is not special in any way from the POV of the display engine. So
> making such a change will likely produce incompatible behavior changes
> in other cases.
This bug report was last modified 1 year and 177 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.