aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-30 15:04:17 +0100
committerLars Ingebrigtsen2019-10-30 15:04:17 +0100
commit9df254119c4de577f273cf1ec1a5892a3509da20 (patch)
treef91fa7fb5359d55f758fb5fed3514702d03b73bf /lisp
parent1fc8bf71d99bf966111cfccabef8e8e1cb0321f2 (diff)
downloademacs-9df254119c4de577f273cf1ec1a5892a3509da20.tar.gz
emacs-9df254119c4de577f273cf1ec1a5892a3509da20.zip
Make font-lock-refontify try even harder to refontify
* lisp/font-lock.el (font-lock-refontify): Make this command work even after switching global font lock mode on and then off again.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/font-lock.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 971e37309e9..2c91586c99d 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1107,7 +1107,9 @@ locking for a mode, and is not meant to be called from lisp functions."
1107 (interactive) 1107 (interactive)
1108 (declare (interactive-only t)) 1108 (declare (interactive-only t))
1109 (setq font-lock-major-mode nil) 1109 (setq font-lock-major-mode nil)
1110 (font-lock-ensure)) 1110 (font-lock-set-defaults)
1111 (save-excursion
1112 (font-lock-fontify-region (point-min) (point-max))))
1111 1113
1112(defun font-lock-ensure (&optional beg end) 1114(defun font-lock-ensure (&optional beg end)
1113 "Make sure the region BEG...END has been fontified. 1115 "Make sure the region BEG...END has been fontified.