Function: font-lock-ensure
font-lock-ensure is a byte-compiled function defined in
font-lock.el.gz.
Signature
(font-lock-ensure &optional BEG END)
Documentation
Make sure the region BEG...END has been fontified.
If the region is not specified, it defaults to the entire accessible portion of the buffer.
Probably introduced at or before Emacs version 25.1.
Aliases
hfy-force-fontification (obsolete since 28.1)
ps-print-ensure-fontified (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defun font-lock-ensure (&optional beg end)
"Make sure the region BEG...END has been fontified.
If the region is not specified, it defaults to the entire accessible
portion of the buffer."
(when (font-lock-specified-p t)
(font-lock-set-defaults)
(funcall font-lock-ensure-function
(or beg (point-min)) (or end (point-max)))))