GNU bug report logs - #65896
30.0.50; folding text with text properties prevents background from extending past the newline

Previous Next

Package: emacs;

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 #115 received at 65896 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: StrawberryTea <look <at> strawberrytea.xyz>
Cc: yantar92 <at> posteo.net, kevin.legouguec <at> gmail.com, 65896 <at> debbugs.gnu.org,
 juri <at> linkov.net
Subject: Re: bug#65896: 30.0.50; folding text with text properties prevents
 background from extending past the newline
Date: Sat, 30 Sep 2023 16:49:01 +0300
> From: StrawberryTea <look <at> strawberrytea.xyz>
> Cc: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>, Eli
>  Zaretskii
>  <eliz <at> gnu.org>, 65896 <at> debbugs.gnu.org, Ihor Radchenko
>  <yantar92 <at> posteo.net>
> Date: Fri, 29 Sep 2023 14:07:17 -0500
> 
> Basically, it’s always possible to overlay the newline after a fold or shorten
> the fold by one character and overlay a newline for the last character then set
> a face and extend property for that newline.

Sorry, I don't think I follow.  Could you please show some example of
this, perhaps with "ASCII art"?  What do you mean by "overlay the
newline", and what is "the fold" in this context?

> What I think could be an alternative to adding all these overlays is a change on
> the display engine side so that the extend property on a character extends its
> face background regardless of whether it’s a newline character.

That is a non-starter, since there's no text in that part.  We don't
show any parts of the text area with any face unless that part is "in
the middle of text", and the part after EOB isn't.




This bug report was last modified 1 year and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.