diff options
| author | Stefan Monnier | 2020-04-15 12:17:14 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2020-04-15 12:17:14 -0400 |
| commit | 0ed7177696c8357f0b50d4c81a1f87e43db27e7c (patch) | |
| tree | f430b4f26ec787e5524143ee332f993b1aa45eff | |
| parent | a5f7c269075180e4531f0a784201a09b49731a27 (diff) | |
| download | emacs-0ed7177696c8357f0b50d4c81a1f87e43db27e7c.tar.gz emacs-0ed7177696c8357f0b50d4c81a1f87e43db27e7c.zip | |
* lisp/htmlfontify.el (hfy-force-fontification): Fix bug#40642
Don't presume that `jit-lock-mode` is enabled.
Do not merge to `master`.
| -rw-r--r-- | lisp/htmlfontify.el | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
| 1837 | (when font-lock-defaults | 1837 | (when font-lock-defaults |
| 1838 | ; Silence "interactive use only" warning on Emacs >= 25.1. | 1838 | ; Silence "interactive use only" warning on Emacs >= 25.1. |
| 1839 | (with-no-warnings (font-lock-fontify-buffer))))) | 1839 | (with-no-warnings (font-lock-fontify-buffer))))) |
| 1840 | ((fboundp #'jit-lock-fontify-now) | 1840 | ((and (fboundp #'jit-lock-fontify-now) |
| 1841 | (bound-and-true-p jit-lock-mode)) | ||
| 1841 | (message "hfy jit-lock mode (%S %S)" window-system major-mode) | 1842 | (message "hfy jit-lock mode (%S %S)" window-system major-mode) |
| 1842 | (jit-lock-fontify-now)) | 1843 | (jit-lock-fontify-now)) |
| 1843 | (t | 1844 | (t |