File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 124
124
(if (string= ext " cljs" )
125
125
(nrepl-make-connection-default clojure-quick-repls-cljs-con-buf)
126
126
(nrepl-make-connection-default clojure-quick-repls-clj-con-buf))
127
- (when ( fboundp f)
127
+ (when f
128
128
(funcall f)))
129
- (when ( fboundp h)
130
- (funcall h)))))
129
+ (when h
130
+ (funcall h)))))
131
131
132
132
(defun clojure-quick-repls-switch-to-relevant-repl (arg )
133
133
(interactive )
134
- (clojure-quick-repls-set-connection 'cider-switch-to-current-repl-buffer 'cider-switch-to-relevant-repl-buffer ))
134
+ (lexical-let ((a arg))
135
+ (clojure-quick-repls-set-connection (lambda () (cider-switch-to-current-repl-buffer a))
136
+ (lambda () (cider-switch-to-relevant-repl-buffer a)))))
135
137
136
138
(if (version< emacs-version " 24.4" )
137
139
(progn
You can’t perform that action at this time.
0 commit comments