emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f8134d2 2/2: Clear more data in font-lock-refontify to ensure ref


From: Lars Ingebrigtsen
Subject: master f8134d2 2/2: Clear more data in font-lock-refontify to ensure refontifying
Date: Wed, 30 Oct 2019 10:39:59 -0400 (EDT)

branch: master
commit f8134d2753e4abb7a12d87af731d2ad213bb5bd1
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 2c91586..ef0e2dc 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]