summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
authorJinseop Kim <vmfhrmfoaj@yahoo.com>2015-08-09 22:07:01 +0900
committerJinseop Kim <vmfhrmfoaj@yahoo.com>2015-08-09 22:07:01 +0900
commitbc6727653fb711397f5c37f65fd36eefa0e0cb5e (patch)
tree1f0bbbe8069d933d6c25a2d914fbadc6fc452a33 /cider-util.el
parent1120e5fdd7ebe36a495774f7a1c4f43b2cb9fa45 (diff)
Fix undefined function
`font-lock-ensure` is not defined in Emacs-24 and lower version.
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/cider-util.el b/cider-util.el
index 0b95fca4..1a2be376 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -100,7 +100,9 @@ PROP is the name of a text property."
(setq-local delay-mode-hooks t)
(setq delayed-mode-hooks nil)
(funcall mode)
- (font-lock-ensure)
+ (if (fboundp 'font-lock-ensure)
+ (font-lock-ensure)
+ (font-lock-fontify-buffer))
(buffer-string))
string))