1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00

Don't claim that anonymous face can't be used in font-lock

* doc/lispref/display.texi (Faces): Anonymous functions can be
used when font locking, so adjust the injunction against them
(bug#35005).
This commit is contained in:
Lars Ingebrigtsen 2019-11-01 14:17:17 +01:00
parent eec9343850
commit f301513a46

View File

@ -2248,11 +2248,10 @@ is equivalent to a Lisp symbol with the same name.}. Named faces are
defined using the @code{defface} macro (@pxref{Defining Faces}).
Emacs comes with several standard named faces (@pxref{Basic Faces}).
Many parts of Emacs require named faces, and do not accept
anonymous faces. These include the functions documented in
@ref{Attribute Functions}, and the variable @code{font-lock-keywords}
(@pxref{Search-based Fontification}). Unless otherwise stated, we
will use the term @dfn{face} to refer only to named faces.
Many parts of Emacs require named faces, but some do not accept
anonymous faces (e.g., the functions documented in @ref{Attribute
Functions}). Unless otherwise stated, we will use the term @dfn{face}
to refer only to named faces.
@defun facep object
This function returns a non-@code{nil} value if @var{object} is a