unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Support for fontification with anonymous faces
@ 2019-03-30  8:48 Markus Triska
  0 siblings, 0 replies; only message in thread
From: Markus Triska @ 2019-03-30  8:48 UTC (permalink / raw)
  To: emacs-devel

Dear all,

the Elisp info material states in "39.12 Faces": 

      Many parts of Emacs require named faces, and do not accept
   anonymous faces. These include the functions documented in Attribute
   Functions, and the variable ‘font-lock-keywords’ (see Search-based
   Fontification). Unless otherwise stated, we will use the term “face”
   to refer only to named faces.

However, when I start Emacs with "emacs -Q", and then evaluate in
the *scratch* buffer the form:

    (progn
      (font-lock-add-keywords nil '(("hello" 0 '(:background "green")) t))
      (insert "hello"))

then I see that "hello" is inserted and highlighted in green, apparently
due to search-based fontification where an anonymous face is specified!

I am currently working on an application where this functionality (i.e.,
anonymous faces that can be specified for fontification) would be
extremely useful. Could you please consider supporting this feature,
and - if this already works as intended - officially document it?

This is also filed as issue #35005, where Eli suggested to ask here.

Thank you and all the best!
Markus



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-30  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-30  8:48 Support for fontification with anonymous faces Markus Triska

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).