Function: font-lock-debug-fontify
font-lock-debug-fontify is an interactive and byte-compiled function
defined in font-lock.el.gz.
Signature
(font-lock-debug-fontify)
Documentation
Reinitialize the font-lock machinery and (re-)fontify the buffer.
This functions is a convenience functions when developing font locking for a mode, and is not meant to be called from Lisp functions.
Probably introduced at or before Emacs version 27.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defun font-lock-debug-fontify ()
"Reinitialize the font-lock machinery and (re-)fontify the buffer.
This functions is a convenience functions when developing font
locking for a mode, and is not meant to be called from Lisp functions."
(declare (interactive-only t))
(interactive)
;; Make font-lock recalculate all the mode-specific data.
(setq font-lock-major-mode nil)
;; Make the syntax machinery discard all information.
(syntax-ppss-flush-cache -1)
(font-lock-set-defaults)
(save-excursion
(font-lock-fontify-region (point-min) (point-max))))