Hitori Otegaru Wiki Modoki
Revision | 21e580b580fdabc5f914ebc563b1998a2dd9ddd3 (tree) |
---|---|
Time | 2020-12-31 19:08:35 |
Author | Hiraoka <khi@user...> |
Commiter | Hiraoka |
fix warning on font-lock-fontify-buffer in byte compiling
@@ -1,3 +1,8 @@ | ||
1 | +2020-12-29 HIRAOKA Kazuyuki <khi@users.osdn.me> | |
2 | + | |
3 | + * cheat-font-lock.el (cheat-font-lock-fontify): | |
4 | + fix warning on font-lock-fontify-buffer in byte compiling | |
5 | + | |
1 | 6 | 2020-10-15 HIRAOKA Kazuyuki <khi@users.osdn.me> |
2 | 7 | |
3 | 8 | * configure.ac: set version as 1.4.7-snapshot2 |
@@ -105,7 +105,10 @@ | ||
105 | 105 | (font-lock-set-defaults)) |
106 | 106 | |
107 | 107 | (defun cheat-font-lock-fontify (&optional dummy) |
108 | - (font-lock-fontify-buffer)) | |
108 | + (if (fboundp 'font-lock-ensure) | |
109 | + (font-lock-ensure) | |
110 | + (with-no-warnings | |
111 | + (font-lock-fontify-buffer)))) | |
109 | 112 | |
110 | 113 | (provide 'cheat-font-lock) |
111 | 114 |