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

From: Ihor Radchenko <[email-masked]>
Date: Wed, 24 Jan 2024 16:42:22 +0000

Kévin Le Gouguec <[email-masked]> writes:

> Ihor Radchenko <[email-masked]> writes:
>
>> After several attempts, I found a way to handle faces in the trailing
>> newlines after folds without excessive changes in Org mode.
>> Fixed, on main.
>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2ade16bbc
>
> Neat.  At first glance (including the subsequent fixup), it looks like
> outline.el could be taught the same trick, right?  It would """just"""
> be a matter of finding the spot(s) that map to org-fold-core-region, and
> implementing equivalents to the org-fold-core helpers you leveraged
> (get-regions, get-folding-spec, get-region-at-point) if they don't exist
> already?

Yes, it should be doable.
The equivalents would be overlay* functions.
Or outline.el can use org-fold-core to fold staff :)
org-fold-core has no major dependencies from Org libraries.

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