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


View this message in rfc822 format

From: Kévin Le Gouguec <kevin.legouguec <at> gmail.com>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 65896-done <at> debbugs.gnu.org, look <at> strawberrytea.xyz
Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline
Date: Tue, 23 Jan 2024 20:14:21 +0100
Ihor Radchenko <yantar92 <at> posteo.net> 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?

Not lobbying for it (and certainly not requesting you tackle that);
asking in case your experience with Org taught you anything that might
come in handy for generalizing to outline.el.  There already exist
non-Org uses of that package that could benefit from that feature
(e.g. diff-mode when the diff-context face has a non-default background,
or when diff switches include -U0), so I could see value in adding a
user option to enable that.




This bug report was last modified 1 year and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.