[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 60ad3d6: Clean up font-lock-refontify slightly
From: |
Lars Ingebrigtsen |
Subject: |
master 60ad3d6: Clean up font-lock-refontify slightly |
Date: |
Thu, 31 Oct 2019 08:26:28 -0400 (EDT) |
branch: master
commit 60ad3d63cf6100f30801eb9c0256a84907da1dca
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Clean up font-lock-refontify slightly
* lisp/font-lock.el (font-lock-refontify): Use
syntax-ppss-flush-cache instead of internal variable.
---
lisp/font-lock.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index ef0e2dc..4eb7bb8 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1106,8 +1106,10 @@ 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
- syntax-propertize--done -1)
+ ;; Make font-lock recalculate all the mode-specific data.
+ (setq font-lock-major-mode nil)
+ ;; Make the syntax machinery discard all information.
+ (syntax-ppss-flush-cache -1)
(font-lock-set-defaults)
(save-excursion
(font-lock-fontify-region (point-min) (point-max))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 60ad3d6: Clean up font-lock-refontify slightly,
Lars Ingebrigtsen <=