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

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

[elpa] 13/16: * packages/markchars/markchars.el (markchars-mode): Use fo


From: Stefan Monnier
Subject: [elpa] 13/16: * packages/markchars/markchars.el (markchars-mode): Use font-lock-flush when available.
Date: Wed, 15 Oct 2014 21:05:59 +0000

monnier pushed a commit to branch master
in repository elpa.

commit bcfd791fd0c321298d9d3c675fde9c5046e86c22
Author: Stefan Monnier <address@hidden>
Date:   Wed Oct 15 16:42:34 2014 -0400

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

diff --git a/packages/markchars/markchars.el b/packages/markchars/markchars.el
index 2f0e7b7..974456a 100644
--- a/packages/markchars/markchars.el
+++ b/packages/markchars/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]