From: Lars Ingebrigtsen Date: Wed, 30 Oct 2019 14:39:44 +0000 (+0100) Subject: Clear more data in font-lock-refontify to ensure refontifying X-Git-Tag: emacs-27.0.90~817 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f8134d2753e4abb7a12d87af731d2ad213bb5bd1;p=emacs.git Clear more data in font-lock-refontify to ensure refontifying * lisp/font-lock.el (font-lock-refontify): Clear out even more data. --- diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 2c91586c99d..ef0e2dc0458 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1106,7 +1106,8 @@ This functions is a convenience functions when developing font locking for a mode, and is not meant to be called from lisp functions." (interactive) (declare (interactive-only t)) - (setq font-lock-major-mode nil) + (setq font-lock-major-mode nil + syntax-propertize--done -1) (font-lock-set-defaults) (save-excursion (font-lock-fontify-region (point-min) (point-max))))