OSDN Git Service

fix warning on font-lock-fontify-buffer in byte compiling
authorHiraoka <khi@users.osdn.me>
Thu, 31 Dec 2020 10:08:35 +0000 (19:08 +0900)
committerHiraoka <khi@users.osdn.me>
Thu, 31 Dec 2020 10:08:35 +0000 (19:08 +0900)
ChangeLog
cheat-font-lock.el

index f215399..0a3168e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-29  HIRAOKA Kazuyuki  <khi@users.osdn.me>
+
+       * cheat-font-lock.el (cheat-font-lock-fontify):
+       fix warning on font-lock-fontify-buffer in byte compiling
+
 2020-10-15  HIRAOKA Kazuyuki  <khi@users.osdn.me>
 
        * configure.ac: set version as 1.4.7-snapshot2
index 5268289..a019c73 100644 (file)
   (font-lock-set-defaults))
 
 (defun cheat-font-lock-fontify (&optional dummy)
-  (font-lock-fontify-buffer))
+  (if (fboundp 'font-lock-ensure)
+      (font-lock-ensure)
+    (with-no-warnings
+      (font-lock-fontify-buffer))))
 
 (provide 'cheat-font-lock)