[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9df2541: Make font-lock-refontify try even harder to refontify
From: |
Lars Ingebrigtsen |
Subject: |
master 9df2541: Make font-lock-refontify try even harder to refontify |
Date: |
Wed, 30 Oct 2019 10:04:28 -0400 (EDT) |
branch: master
commit 9df254119c4de577f273cf1ec1a5892a3509da20
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Make font-lock-refontify try even harder to refontify
* lisp/font-lock.el (font-lock-refontify): Make this command work
even after switching global font lock mode on and then off again.
---
lisp/font-lock.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 971e373..2c91586 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1107,7 +1107,9 @@ 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)
- (font-lock-ensure))
+ (font-lock-set-defaults)
+ (save-excursion
+ (font-lock-fontify-region (point-min) (point-max))))
(defun font-lock-ensure (&optional beg end)
"Make sure the region BEG...END has been fontified.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9df2541: Make font-lock-refontify try even harder to refontify,
Lars Ingebrigtsen <=