]> git.eshelyaron.com Git - emacs.git/commitdiff
Clear more data in font-lock-refontify to ensure refontifying
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 14:39:44 +0000 (15:39 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 30 Oct 2019 14:39:44 +0000 (15:39 +0100)
* lisp/font-lock.el (font-lock-refontify): Clear out even more data.

lisp/font-lock.el

index 2c91586c99dddbfb9469d46526eda6dd89f45b1c..ef0e2dc0458282a2397cd69b95b839e17a0b5711 100644 (file)
@@ -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))))