emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/markchars 7bfdee8 4/9: * packages/markchars/markchars.e


From: Stefan Monnier
Subject: [elpa] externals/markchars 7bfdee8 4/9: * packages/markchars/markchars.el (markchars-mode): Use font-lock-flush
Date: Sat, 28 Nov 2020 22:45:43 -0500 (EST)

branch: externals/markchars
commit 7bfdee8cf7e75a76613b91a64ec0a97ef6d385c5
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * packages/markchars/markchars.el (markchars-mode): Use font-lock-flush
    when available.
---
 markchars.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/markchars.el b/markchars.el
index 2f0e7b7..974456a 100644
--- a/markchars.el
+++ b/markchars.el
@@ -191,7 +191,8 @@ The default is to mark nonascii chars with a magenta 
underline."
           (add-to-list props 'markchars))
         (font-lock-add-keywords nil markchars-used-keywords))
     (font-lock-remove-keywords nil markchars-used-keywords))
-  (font-lock-fontify-buffer))
+  (if (fboundp 'font-lock-flush)
+      (font-lock-flush) (font-lock-fontify-buffer)))
 
 ;;;###autoload
 (define-globalized-minor-mode markchars-global-mode markchars-mode



reply via email to

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