From 0ed7177696c8357f0b50d4c81a1f87e43db27e7c Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 15 Apr 2020 12:17:14 -0400 Subject: [PATCH] * 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 c0012427ae1..08e52d63a26 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 -- 2.39.2