summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/cider-util.el b/cider-util.el
index 7c33a8d2..735ef51a 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -208,14 +208,18 @@ PROP is the name of a text property."
(defalias 'cider--font-lock-ensure
(if (fboundp 'font-lock-ensure)
#'font-lock-ensure
- #'font-lock-fontify-buffer))
+ (with-no-warnings
+ (lambda (&optional _beg _end)
+ (when font-lock-mode
+ (font-lock-fontify-buffer))))))
(defalias 'cider--font-lock-flush
(if (fboundp 'font-lock-flush)
#'font-lock-flush
(with-no-warnings
(lambda (&optional _beg _end)
- (font-lock-fontify-buffer)))))
+ (when font-lock-mode
+ (font-lock-fontify-buffer))))))
(defvar cider--mode-buffers nil
"A list of buffers for different major modes.")