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

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

Re: New line and trailing whitespaces


From: Eli Zaretskii
Subject: Re: New line and trailing whitespaces
Date: Tue, 23 Apr 2024 19:19:02 +0300

> Date: Tue, 23 Apr 2024 17:38:15 +0200
> From: Ergus <spacibba@aol.com>
> Cc: help-gnu-emacs@gnu.org
> 
> >You need to customize whitespace-display-mappings.  Specifically, the
> >tab-mark element of the value is by default the vector '[?� ?\t], and
> >you need to replace each of these two characters with a glyph that has
> >the face you want, using make-glyph-code.  Caveat: a comment in
> >whitespace.el explains why only newlines are given a face:
> >
> >           ;; Only insert face bits on NEWLINE char mapping to avoid
> >           ;; obstruction of other faces like TABs and (HARD) SPACEs
> >           ;; faces, font-lock faces, etc.
> >
> 
> Ahh this is exactly what I want..
> 
> Do you think it worth adding your paragraph as a comment somewhere in
> whitespace or reference that in its manual section?

IMO, if we want users to be able to do this, we need a more
user-friendly way of doing that.  Like define a special face, and make
whitespace.el use make-glyph-code with that face, given some user
option setting.

Patches welcome.



reply via email to

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