aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/lispref/modes.texi24
1 files changed, 17 insertions, 7 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 3227aa3bdc3..71db5cc7fd0 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2830,13 +2830,23 @@ arguments, the beginning and end of the region. The default value is
2830@code{font-lock-default-unfontify-region}. 2830@code{font-lock-default-unfontify-region}.
2831@end defvar 2831@end defvar
2832 2832
2833@ignore 2833@defun jit-lock-register function &optional contextual
2834@defvar font-lock-inhibit-thing-lock 2834This function tells Font Lock mode to run the Lisp function
2835List of Font Lock mode related modes that should not be turned on. 2835@var{function} any time it has to fontify or refontify part of the
2836Currently, valid mode names are @code{fast-lock-mode}, 2836current buffer. It calls @var{function} before calling the default
2837@code{jit-lock-mode} and @code{lazy-lock-mode}. 2837fontification functions, and gives it two arguments, @var{start} and
2838@end defvar 2838@var{end}, which specify the region to be fontified or refontified.
2839@end ignore 2839
2840The optional argument @var{contextual}, if non-@code{nil}, forces Font
2841Lock mode to always refontify a syntactically relevant part of the
2842buffer, and not just the modified lines. This argument can usually be
2843omitted.
2844@end defun
2845
2846@defun jit-lock-unregister function
2847If @var{function} was previously registered as a fontification
2848function using @code{jit-lock-register}, this function unregisters it.
2849@end defun
2840 2850
2841@node Levels of Font Lock 2851@node Levels of Font Lock
2842@subsection Levels of Font Lock 2852@subsection Levels of Font Lock