Subject: Re: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline

From: Eli Zaretskii <[email-masked]>
Date: Tue, 12 Sep 2023 21:51:49 +0300

tags 65896 wishlist
thanks

> From: StrawberryTea <[email-masked]>
> Date: Tue, 12 Sep 2023 13:00:45 -0500
> 
> 
> Hi. This issue comes from Reddit,
> https://www.reddit.com/r/emacs/comments/v0i4js/extend_org_heading_background_face_past_the/.
> Basically, if I fold text using text properties, the heading background
> does not extend to the end of the window. To quote /u/yantar92: "This is
> because the trailing newline in the folded heading gets hidden. If the
> trailing newline is invisible, :extend t has no effect. It is Emacs
> limitation, AFAIK." It would be great if we could make the :extend
> property work with invisible text.

It cannot.  Text properties of invisible text are ignored because the
display engine skips invisible text and doesn't consider it and its
properties at all.

I'm not closing this bug in the hope that someone will have a clever
idea for how to work around this, or maybe (gasp!) even submits a
patch.