From 651f7556c173ddc553bb1bcfa8730ad221674e47 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 8 Jun 2002 20:26:37 +0000 Subject: [PATCH] (Precalcuated Fontification): New node, describing `font-lock-face'. --- lispref/modes.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lispref/modes.texi b/lispref/modes.texi index 715eccd64ab..987f0a4e7b7 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -1742,6 +1742,7 @@ comments and string constants, and highlights them using * Search-based Fontification:: * Other Font Lock Variables:: * Levels of Font Lock:: +* Precalculated Fontification:: * Faces for Font Lock:: * Syntactic Font Lock:: @end menu @@ -2084,6 +2085,18 @@ function and variable declarations, and all builtin function names, wherever they appear. @end itemize +@node Precalculated Fontification +@subsection Precalculated Fontification + +In addition to using @code{font-lock-defaults} for search-based +fontification, you may use the special character property +@code{font-lock-face} (@pxref{Special Properties}). This property +acts just like the explicit @code{face} property, but its activation +is toggled when the user calls @kbd{M-x font-lock-mode}. Using +@code{font-lock-face} is especially conveninent for special modes +which construct their text programmatically, such as +@code{list-buffers} and @code{occur}. + @node Faces for Font Lock @subsection Faces for Font Lock -- 2.39.5