1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

* lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642

Don't presume that `jit-lock-mode` is enabled.
Do not merge to `master`.
This commit is contained in:
Stefan Monnier 2020-04-15 12:17:14 -04:00
parent a5f7c26907
commit 0ed7177696

View 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