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

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Ihor Radchenko <yantar92 <at> posteo.net>, 65896 <at> debbugs.gnu.org,
 look <at> strawberrytea.xyz
Subject: Re: bug#65896: 30.0.50; folding text with text properties prevents
 background from extending past the newline
Date: Thu, 21 Sep 2023 23:07:50 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>                                        I cannot see how this proposal
> could be TRT.

Yeah, I believe there should be ways to scratch that itch without going
all the way down to the display engine.

FWIW, I would invite motivated hackers to check out magit-section and
see if outline-mode could be taught a new "folding style" that would use
the same folding principles.  My own wandering through the EIEIO maze
has been too brief to yield anything useful, but AFAICT the salient
points are:

* setting the 'invisible overlay's BEG at the start of the "section
body" (after the heading's newline),

* storing bookkeeping information (such as this beginning position) in a
'magit-section property applied to the heading, so that
magit-section-show can retrieve that information when invoked by the
user with point on that heading.

I would imagine outline.el could grow a user option to adjust overlay
boundaries this way, so the heading's newline would remain visible, and
so would any :extend property on that newline… although perhaps I'm
missing some key differences between outline-mode and magit-section-mode
that may derail this train of thought.




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.