From: Lars Ingebrigtsen Date: Mon, 13 Jun 2022 18:57:25 +0000 (+0200) Subject: Mention how to only get syntactic font locking in the manual X-Git-Tag: emacs-29.0.90~1910^2~13 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=706ef0ae932a68b8eca86678d0cc627854c25c15;p=emacs.git Mention how to only get syntactic font locking in the manual * doc/lispref/modes.texi (Syntactic Font Lock): Note how to only get syntactic font locking (bug#46039). --- diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index ddcda661a06..4f40f35ff45 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -3665,6 +3665,10 @@ the value is @code{nil}, Font Lock will call @code{jit-lock-register} (@pxref{Other Font Lock Variables}) to set up for automatic refontification of buffer text following a modified line to reflect the new syntactic context due to the change. + +To use only syntactic fontification, this variable should +be non-@code{nil}, while @code{font-lock-keywords} should be set to +@code{nil} (@pxref{Font Lock Basics}). @end defvar @defvar font-lock-syntax-table