Variable: jit-lock-debug-mode
jit-lock-debug-mode is a customizable variable defined in
jit-lock.el.gz.
Value
nil
Documentation
Non-nil if Jit-Lock-Debug mode is enabled.
See the jit-lock-debug-mode(var)/jit-lock-debug-mode(fun) command
for a description of this minor mode.
Setting this variable directly does not take effect;
either customize it (see the info node (emacs)Easy Customization)
or call the function jit-lock-debug-mode(var)/jit-lock-debug-mode(fun).
Probably introduced at or before Emacs version 24.4.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/jit-lock.el.gz
(define-minor-mode jit-lock-debug-mode
"Minor mode to help debug code run from jit-lock.
When this minor mode is enabled, jit-lock runs as little code as possible
during redisplay and moves the rest to a timer, where things
like `debug-on-error' and Edebug can be used."
:global t
(when jit-lock-defer-timer
(cancel-timer jit-lock-defer-timer)
(setq jit-lock-defer-timer nil))
(when jit-lock-debug-mode
(setq jit-lock-defer-timer
(run-with-idle-timer 0 t #'jit-lock--debug-fontify))))