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

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

[nongnu] elpa/yaml-mode 2941501 043/124: Merge pull request #29 from tar


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode 2941501 043/124: Merge pull request #29 from tarsius/font-lock-ensure
Date: Sun, 29 Aug 2021 11:36:09 -0400 (EDT)

branch: elpa/yaml-mode
commit 2941501972ba5264734570cc9213bd2a30bea989
Merge: 67b8355 34b6367
Author: Yoshiki Kurihara <clouder@gmail.com>
Commit: Yoshiki Kurihara <clouder@gmail.com>

    Merge pull request #29 from tarsius/font-lock-ensure
    
    Use font-lock-flush when available
---
 yaml-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 80dbdbe..b6e85b4 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -227,7 +227,10 @@ that key is pressed to begin a block literal."
        '(yaml-font-lock-keywords
          nil nil nil nil
          (font-lock-syntactic-keywords . yaml-font-lock-syntactic-keywords)))
-  (font-lock-fontify-buffer))
+  (if (fboundp 'font-lock-flush)
+      (font-lock-flush)
+    (with-no-warnings
+      (font-lock-fontify-buffer))))
 
 
 ;; Font-lock support



reply via email to

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