summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2014-09-01 09:40:28 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2014-09-01 09:40:28 +0300
commitd8d3db5c8a8ae73951393ab4abb4a7f46700e052 (patch)
tree29ec6207822257bdfcdd50859bdeca37d63e168a /cider-util.el
parenta83bd7f21ae5dc360d705a1bcbdab8fc39f93d64 (diff)
parent63ebbc73073cb8fd733eadb01f88ff9739f0130b (diff)
Merge pull request #764 from vitoshka/delay-mode-hooks
Fix "making delay-mode-hooks buffer-local" message
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/cider-util.el b/cider-util.el
index 0ad8203b..d891c3fb 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -98,9 +98,9 @@ PROP is the name of a text property."
(insert string)
;; suppress major mode hooks as we care only about their font-locking
;; otherwise modes like whitespace-mode and paredit might interfere
- (let ((delay-mode-hooks t)
- (delayed-mode-hooks nil))
- (funcall mode))
+ (setq-local delay-mode-hooks t)
+ (setq delayed-mode-hooks nil)
+ (funcall mode)
(font-lock-fontify-buffer)
(buffer-string)))