branch: elpa/htmlize
commit b9789bafc8b53ef3b35642c13d0153dea0c0c978
Author: Hrvoje Niksic <[email protected]>
Commit: Hrvoje Niksic <[email protected]>

    Don't warn on the use of font-lock-fontify-buffer in older Emacsen.
---
 htmlize.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/htmlize.el b/htmlize.el
index a2033a2..f0376ce 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -1843,8 +1843,9 @@ does not name a directory, it will be used as output file 
name."
         (if (fboundp 'font-lock-ensure)
             (font-lock-ensure)
           ;; Emacs prior to 25.1
-          (font-lock-mode 1)
-         (font-lock-fontify-buffer))
+          (with-no-warnings
+            (font-lock-mode 1)
+            (font-lock-fontify-buffer)))
        ;; htmlize the buffer and save the HTML.
        (with-current-buffer (htmlize-buffer-1)
          (unwind-protect

Reply via email to