GNU bug report logs -
#13686
24.3.50; Re-look hi-lock-face-defaults (aka Provide more "core" faces for highlighting)
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Mon, 11 Feb 2013 06:16:02 UTC
Severity: wishlist
Found in version 24.3.50
Done: Jambunathan K <kjambunathan <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #68 received at 13686 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>> "hi-lock-1", "hi-lock-2", etc. are the best names.
>> My earlier mail asked for making the highlighting face a "core" one. So
>> having highlight-1, highlight-2 etc as "core" themable faces will make
>> theme designers pay attention to it.
>
> We could definitely add such core faces. But in order for that to
> augment current functionality, we still need a way for the user to
> specify the highlighting directly by its attribute.
Let's focus on core, themable faces. How many you want in what prefix
or file. I propose that these faces be named opaquely as
hi-lock-N
highlight-N
font-lock-user-N
font-lock-highlight-N
font-lock-extra-face-N
----------------------------------------------------------------
I have also proposed that hi-yellow etc be named as
hi-lock-color-yellow etc.
My overall plan is to have a formalized version of the following with
`hi-lock-face-regexp' turned around in to a defcustom.
(defvar hi-lock-face-regexp "\\`hi-lock-color")
(setq hi-lock-face-defaults
((lambda (regexp)
"List of faces that match REGEXP."
(delq nil
(mapcar (lambda (f)
(let ((s (symbol-name f)))
(when (string-match regexp s) f)))
(reverse (face-list)))))
hi-lock-face-regexp))
This way those who want to be prompted with colors and those who want
opaque, themable faces will remain happy.
ps: I will provide a patch once there is a general agreement on the
approach.
----------------------------------------------------------------
>
>
> Stefan
This bug report was last modified 11 years and 189 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.