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: Eli Zaretskii <eliz <at> gnu.org>
To: LemonBreezes <look <at> strawberrytea.xyz>
Cc: 65896 <at> debbugs.gnu.org, kevin.legouguec <at> gmail.com
Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline
Date: Wed, 13 Sep 2023 14:54:00 +0300
> Date: Tue, 12 Sep 2023 16:35:16 -0500
> From: LemonBreezes <look <at> strawberrytea.xyz>
> Cc: 65896 <at> debbugs.gnu.org
> 
> This might not sound too clever, but why don't we just make the extend
> property be determined by the first character in the line rather than
> the last character / newline character? 

How can Emacs know, when it processes the first character on a line,
whether the last character on that line will have the same face?

You seem to assume that the Emacs display engine has "global" view of
the line it is processing for display.  But that's not what happens:
the Emacs display is basically a one-pass layout engine whose view of
the text is a peephole whose size is a single character.  The display
engine processes a character, makes all the decisions regarding its
display and layout, then proceeds to the next one, and so on.  When it
gets to the newline that ends a line, it makes the decision whether
the last face it saw needs to be extended, and if so, extends it.




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.