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: Sat, 23 Sep 2023 16:10:03 +0300

> From: Ihor Radchenko <[email-masked]>
> Cc: [email-masked], [email-masked], [email-masked]
> Date: Sat, 23 Sep 2023 12:59:32 +0000
> 
> Note that there is a similar case when the region is not
> displayed at all:
> 
> * Folded heading<point>...
> 
> . C-SPC
> . C-f
> (observe ellipsis not being highlighted)

That's a feature: we ignore faces of invisible text, which I think is
the expected behavior

> > Why cannot Org include in the invisible text the newline of the last
> > line that is being hidden?  That is, in the above scenario, make the
> > invisible text begin with the first character of "#+begin_src" and end
> > after the newline following "#+end_src".
> 
> That will make ellipsis displayed on the same line with the next heading:
> 
> * Heading
> ...* Another heading

And "* Another heading" cannot have an extra newline before it?