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

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

[nongnu] elpa/yaml-mode c757396 066/124: Remove unnecessary refontificat


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode c757396 066/124: Remove unnecessary refontification
Date: Sun, 29 Aug 2021 11:36:14 -0400 (EDT)

branch: elpa/yaml-mode
commit c7573962216f79e93642b91e7aa8552f7be46b41
Author: Vasilij Schneidermann <v.schneidermann@gmail.com>
Commit: Vasilij Schneidermann <v.schneidermann@gmail.com>

    Remove unnecessary refontification
    
    Closes #37
---
 yaml-mode.el | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 3b01a15..39c0e57 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -225,11 +225,7 @@ that key is pressed to begin a block literal."
 
   (set (make-local-variable 'syntax-propertize-function)
        'yaml-mode-syntax-propertize-function)
-  (setq font-lock-defaults '(yaml-font-lock-keywords))
-  (if (fboundp 'font-lock-flush)
-      (font-lock-flush)
-    (with-no-warnings
-      (font-lock-fontify-buffer))))
+  (setq font-lock-defaults '(yaml-font-lock-keywords)))
 
 
 ;; Font-lock support



reply via email to

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