Mercurial > emacs
changeset 45684:6f73f208b4ce
(Precalcuated Fontification): New node, describing `font-lock-face'.
author | Colin Walters <walters@gnu.org> |
---|---|
date | Sat, 08 Jun 2002 20:26:37 +0000 |
parents | 9e40bb8e9a60 |
children | 4ff98d5e3cf5 |
files | lispref/modes.texi |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/modes.texi Sat Jun 08 20:25:31 2002 +0000 +++ b/lispref/modes.texi Sat Jun 08 20:26:37 2002 +0000 @@ -1742,6 +1742,7 @@ * 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 @@ 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