]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 Apr 2020 16:17:14 +0000 (12:17 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 15 Apr 2020 16:17:14 +0000 (12:17 -0400)
Don't presume that `jit-lock-mode` is enabled.
Do not merge to `master`.

lisp/htmlfontify.el

index c0012427ae1c7b46b9a37712c9e606eec87dcd5d..08e52d63a26ce36986f5d9d6b919f64a0fe6bcf9 100644 (file)
@@ -1837,7 +1837,8 @@ fontified.  This is a simple convenience wrapper around
       (when font-lock-defaults
         ; Silence "interactive use only" warning on Emacs >= 25.1.
         (with-no-warnings (font-lock-fontify-buffer)))))
-   ((fboundp #'jit-lock-fontify-now)
+   ((and (fboundp #'jit-lock-fontify-now)
+         (bound-and-true-p jit-lock-mode))
     (message "hfy jit-lock mode (%S %S)" window-system major-mode)
     (jit-lock-fontify-now))
    (t