aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/font-lock.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index ef0e2dc0458..4eb7bb8c2d4 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1106,8 +1106,10 @@ This functions is a convenience functions when developing font
1106locking for a mode, and is not meant to be called from lisp functions." 1106locking 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 ;; Make font-lock recalculate all the mode-specific data.
1110 syntax-propertize--done -1) 1110 (setq font-lock-major-mode nil)
1111 ;; Make the syntax machinery discard all information.
1112 (syntax-ppss-flush-cache -1)
1111 (font-lock-set-defaults) 1113 (font-lock-set-defaults)
1112 (save-excursion 1114 (save-excursion
1113 (font-lock-fontify-region (point-min) (point-max)))) 1115 (font-lock-fontify-region (point-min) (point-max))))