From 706ef0ae932a68b8eca86678d0cc627854c25c15 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 13 Jun 2022 20:57:25 +0200 Subject: [PATCH] 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). --- doc/lispref/modes.texi | 4 ++++ 1 file changed, 4 insertions(+) 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