summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2015-08-09 09:31:08 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2015-08-09 09:31:08 +0300
commita84e2c10a7571a219e90a669386a82a2d064d8da (patch)
tree22b35b445074c0c93c3a1530eb4652d7c82b22f5 /cider-util.el
parenteb42e617f79b77974148318d8d8b6412f019b854 (diff)
Replace font-lock-fontify-buffer with font-lock-ensure
`font-lock-fontify-buffer' is not supposed to be used non-interactively.
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-util.el b/cider-util.el
index d4f4ae39..429e6797 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -90,7 +90,7 @@ PROP is the name of a text property."
(setq-local delay-mode-hooks t)
(setq delayed-mode-hooks nil)
(funcall mode)
- (font-lock-fontify-buffer)
+ (font-lock-ensure)
(buffer-string)))
(defun cider-font-lock-region-as (mode beg end &optional buffer)