emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 0ed7177: * lisp/htmlfontify.el (hfy-force-fontification): Fix b


From: Stefan Monnier
Subject: emacs-27 0ed7177: * lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642
Date: Wed, 15 Apr 2020 12:17:20 -0400 (EDT)

branch: emacs-27
commit 0ed7177696c8357f0b50d4c81a1f87e43db27e7c
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642
    
    Don't presume that `jit-lock-mode` is enabled.
    Do not merge to `master`.
---
 lisp/htmlfontify.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index c001242..08e52d6 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -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



reply via email to

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