GNU bug report logs -
#62370
28.1; sieve-mode: faces should inherit from font-lock-X-face faces
Previous Next
Reported by: "Trent W. Buck" <trentbuck <at> gmail.com>
Date: Wed, 22 Mar 2023 05:42:01 UTC
Severity: normal
Found in version 28.1
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 3/22/2023 1:10 PM, Gregory Heytings wrote:
> But the sieve-* faces have existed for twenty years, so it's now too
> late to change them.
I think it might actually be ok to change this: the face attributes for
each of the 'sieve-*' faces closely correspond to one of the
'font-lock-*-face' faces. They're not *identical*, but the differences
are very slight.
The mapping is:
sieve-control-commands -> font-lock-builtin-face
sieve-action-commands -> font-lock-function-name-face
sieve-test-commands -> font-lock-constant-face
sieve-tagged-arguments -> font-lock-keyword-face
(Note that this is a different mapping from Trent's proposal.)
If we mapped the 'sieve-*' faces like that, I doubt anyone using the
default theme would notice. Likewise, anyone using a theme that
customizes the 'sieve-*' faces wouldn't notice, since they're already
explicitly-themed.
The only users who would see an impact would be those using non-default
themes that *didn't* have definitions for 'sieve-*' faces, and they'll
arguably have improved visuals: with the change, 'sieve-mode' will look
consistently-themed with the rest of Emacs.
Since there's such a close correspondence to the font-lock faces, I'd
(weakly) advocate for inheriting from them.
This bug report was last modified 1 year and 258 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.