aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2020-04-08 18:33:52 +0300
committerEli Zaretskii2020-04-08 18:33:52 +0300
commit18d1bc0a09db280cc1653706f7f8022786f77c94 (patch)
tree8d07889770657d7555af2412f5f57f038004a844 /doc
parent08486f4cae8e209cd70bd13534beff336faffd9e (diff)
downloademacs-18d1bc0a09db280cc1653706f7f8022786f77c94.tar.gz
emacs-18d1bc0a09db280cc1653706f7f8022786f77c94.zip
Improve documentation of 'jit-lock-contextually'
* lisp/jit-lock.el (jit-lock-contextually): Clarify the jit-lock operation when 'jit-lock-contextually' is non-nil and non-t. * doc/lispref/modes.texi (Syntactic Font Lock) (Other Font Lock Variables): Document the relation between 'jit-lock-register', 'font-lock-keywords-only', and syntactic refontification.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index a8ddd45f891..e685391c955 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -3214,6 +3214,11 @@ The optional argument @var{contextual}, if non-@code{nil}, forces Font
3214Lock mode to always refontify a syntactically relevant part of the 3214Lock mode to always refontify a syntactically relevant part of the
3215buffer, and not just the modified lines. This argument can usually be 3215buffer, and not just the modified lines. This argument can usually be
3216omitted. 3216omitted.
3217
3218When Font Lock is activated in a buffer, it calls this function with a
3219non-@code{nil} value of @var{contextual} if the value of
3220@code{font-lock-keywords-only} (@pxref{Syntactic Font Lock}) is
3221@code{nil}.
3217@end defun 3222@end defun
3218 3223
3219@defun jit-lock-unregister function 3224@defun jit-lock-unregister function
@@ -3380,7 +3385,11 @@ table in special cases. @xref{Syntax Properties}.
3380If the value of this variable is non-@code{nil}, Font Lock does not do 3385If the value of this variable is non-@code{nil}, Font Lock does not do
3381syntactic fontification, only search-based fontification based on 3386syntactic fontification, only search-based fontification based on
3382@code{font-lock-keywords}. It is normally set by Font Lock mode based 3387@code{font-lock-keywords}. It is normally set by Font Lock mode based
3383on the @var{keywords-only} element in @code{font-lock-defaults}. 3388on the @var{keywords-only} element in @code{font-lock-defaults}. If
3389the value is @code{nil}, Font Lock will call @code{jit-lock-register}
3390(@pxref{Other Font Lock Variables}) to set up for automatic
3391refontification of buffer text following a modified line to reflect
3392the new syntactic context due to the change.
3384@end defvar 3393@end defvar
3385 3394
3386@defvar font-lock-syntax-table 3395@defvar font-lock-syntax-table