Skip to content

Commit 63ebbc7

Browse files
committed
Fix "making delay-mode-hooks buffer-local" message
1 parent dd1c044 commit 63ebbc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cider-util.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ PROP is the name of a text property."
9898
(insert string)
9999
;; suppress major mode hooks as we care only about their font-locking
100100
;; otherwise modes like whitespace-mode and paredit might interfere
101-
(let ((delay-mode-hooks t)
102-
(delayed-mode-hooks nil))
103-
(funcall mode))
101+
(setq-local delay-mode-hooks t)
102+
(setq delayed-mode-hooks nil)
103+
(funcall mode)
104104
(font-lock-fontify-buffer)
105105
(buffer-string)))
106106

0 commit comments

Comments
 (0)