emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3f2af38ef8: Merge from origin/emacs-28


From: Stefan Kangas
Subject: master 3f2af38ef8: Merge from origin/emacs-28
Date: Mon, 4 Jul 2022 00:44:05 -0400 (EDT)

branch: master
commit 3f2af38ef844e29ab31e5d30e3ccee91a33f6b99
Merge: c96cd5e2b7 41472f3b6c
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Merge from origin/emacs-28
    
    41472f3b6c Document 'jit-lock-debug-mode'
---
 doc/lispref/modes.texi | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 4f40f35ff4..2ba37e413c 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -3473,7 +3473,8 @@ fontification functions, and gives it two arguments, 
@var{start} and
 @var{end}, which specify the region to be fontified or refontified.
 If @var{function} performs fontifications, it can return a list of the
 form @w{@code{(jit-lock-bounds @var{beg} . @var{end})}}, to indicate
-the bounds of the region it actually fontified; JIT font-lock will use
+the bounds of the region it actually fontified; Just-In-Time (a.k.a.@:
+@acronym{``JIT''}) font-lock will use
 this information to optimize subsequent redisplay cycles and regions
 of buffer text it will pass to future calls to @var{function}.
 
@@ -3493,6 +3494,19 @@ If @var{function} was previously registered as a 
fontification
 function using @code{jit-lock-register}, this function unregisters it.
 @end defun
 
+@cindex debugging font-lock
+@cindex jit-lock functions, debugging
+@deffn Command jit-lock-debug-mode &optional arg
+This is a minor mode whose purpose is to help in debugging code that
+is run by JIT font-lock.  When this mode is enabled, most of the code
+that JIT font-lock normally runs during redisplay cycles, where Lisp
+errors are suppressed, is instead run by a timer.  Thus, this mode
+allows using debugging aids such as @code{debug-on-error}
+(@pxref{Error Debugging}) and Edebug (@pxref{Edebug}) for finding and
+fixing problems in font-lock code and any other code run by JIT
+font-lock.
+@end deffn
+
 @node Levels of Font Lock
 @subsection Levels of Font Lock
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]