mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-20 18:17:20 +00:00
* lisp/font-lock.el (font-lock-ensure): Use font-lock-specified-p (bug#39597)
This commit is contained in:
parent
c87a165040
commit
bce17355ac
@ -1120,9 +1120,10 @@ locking for a mode, and is not meant to be called from lisp functions."
|
||||
"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."
|
||||
(font-lock-set-defaults)
|
||||
(funcall font-lock-ensure-function
|
||||
(or beg (point-min)) (or end (point-max))))
|
||||
(when (font-lock-specified-p t)
|
||||
(font-lock-set-defaults)
|
||||
(funcall font-lock-ensure-function
|
||||
(or beg (point-min)) (or end (point-max)))))
|
||||
|
||||
(defun font-lock-default-fontify-buffer ()
|
||||
"Fontify the whole buffer using `font-lock-fontify-region-function'."
|
||||
|
Loading…
Reference in New Issue
Block a user