diff options
| author | Lars Ingebrigtsen | 2019-11-01 14:17:17 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-11-01 14:17:17 +0100 |
| commit | f301513a46809d0638487c2065847b5fa3f017e5 (patch) | |
| tree | 3660d53b051f684e3f3e7fe62a9709e759fc8756 | |
| parent | eec934385044ede84976f76a7689b6db7a38739b (diff) | |
| download | emacs-f301513a46809d0638487c2065847b5fa3f017e5.tar.gz emacs-f301513a46809d0638487c2065847b5fa3f017e5.zip | |
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).
| -rw-r--r-- | doc/lispref/display.texi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 6290c89cdc9..23758f6be96 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2248,11 +2248,10 @@ is equivalent to a Lisp symbol with the same name.}. Named faces are | |||
| 2248 | defined using the @code{defface} macro (@pxref{Defining Faces}). | 2248 | defined using the @code{defface} macro (@pxref{Defining Faces}). |
| 2249 | Emacs comes with several standard named faces (@pxref{Basic Faces}). | 2249 | Emacs comes with several standard named faces (@pxref{Basic Faces}). |
| 2250 | 2250 | ||
| 2251 | Many parts of Emacs require named faces, and do not accept | 2251 | Many parts of Emacs require named faces, but some do not accept |
| 2252 | anonymous faces. These include the functions documented in | 2252 | anonymous faces (e.g., the functions documented in @ref{Attribute |
| 2253 | @ref{Attribute Functions}, and the variable @code{font-lock-keywords} | 2253 | Functions}). Unless otherwise stated, we will use the term @dfn{face} |
| 2254 | (@pxref{Search-based Fontification}). Unless otherwise stated, we | 2254 | to refer only to named faces. |
| 2255 | will use the term @dfn{face} to refer only to named faces. | ||
| 2256 | 2255 | ||
| 2257 | @defun facep object | 2256 | @defun facep object |
| 2258 | This function returns a non-@code{nil} value if @var{object} is a | 2257 | This function returns a non-@code{nil} value if @var{object} is a |