From f8134d2753e4abb7a12d87af731d2ad213bb5bd1 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 30 Oct 2019 15:39:44 +0100 Subject: [PATCH] Clear more data in font-lock-refontify to ensure refontifying * lisp/font-lock.el (font-lock-refontify): Clear out even more data. --- lisp/font-lock.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- 2.39.5