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

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

bug#44236: [PATCH] xdisp: Apply nobreak-char-display also to NARROW NO-B


From: Eli Zaretskii
Subject: bug#44236: [PATCH] xdisp: Apply nobreak-char-display also to NARROW NO-BREAK SPACE U+202F
Date: Sun, 01 Nov 2020 21:59:26 +0200

> From: Juri Linkov <juri@linkov.net>
> Cc: larsi@gnus.org,  bpeeluk@yahoo.co.uk,  44236@debbugs.gnu.org
> Date: Sun, 01 Nov 2020 21:41:10 +0200
> 
> >> Maybe highlighting should check for some text properties,
> >> and not to highlight nobreak-chars in text with these properties?
> >
> > That would mean an entirely different implementation from what we have
> > now.
> 
> get_next_display_element has no access to text properties?

Text properties are handled by the display code on a level above
get_next_display_element.

But that's not what I meant.  I meant that if we want to base this on
text properties, we should do this via hi-lock or similar, not in the
display engine which treats all characters the same.

Alternatively, if this new feature is so annoying, and people are
unwilling to customize their Emacs to get the old behavior back, maybe
we should make nobreak-char-display more than just a simple boolean,
so that people could control which characters are and aren't
emphasized?





reply via email to

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