We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7725275 commit 05c3090Copy full SHA for 05c3090
cider-util.el
@@ -96,9 +96,11 @@ PROP is the name of a text property."
96
"Use MODE to font-lock the STRING."
97
(with-temp-buffer
98
(insert string)
99
- (funcall mode)
100
- ;; prevent whitespace mode from obscuring the output
101
- (whitespace-mode -1)
+ ;; 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)
102
+ (delayed-mode-hooks nil))
103
+ (funcall mode))
104
(font-lock-fontify-buffer)
105
(buffer-string)))
106
0 commit comments