bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65896: 30.0.50; folding text with text properties prevents backgroun


From: Ihor Radchenko
Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline
Date: Sat, 23 Sep 2023 14:06:02 +0000

Eli Zaretskii <eliz@gnu.org> writes:

>> 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

I do not agree that it is expected. There is basically no way to
distinguish between

* Heading<region beginning><folded text>
<region end>

and

* Heading<folded text><region-beginning>
<region-end>

That said, your example indeed demonstrated that my suggestion would
cause feature regression. Although, IMHO, not severe one, as
demonstrated by the above example.

>> > 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?

It can, but does not have to. And the problem with face :extend Org
users experience usually happens when there is no extra newline.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]