Skip to content

Commit b445a5d

Browse files
committed
Add a comment about require and in-ns in ClojureScript
1 parent 0449bf8 commit b445a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cider-repl.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,8 @@ command will prompt for the name of the namespace to switch to."
12071207
(user-error "No namespace selected"))
12081208
(cider-map-repls :auto
12091209
(lambda (connection)
1210+
;; NOTE: `require' and `in-ns' are special forms in ClojureScript.
1211+
;; That's why we eval them separately instead of combining them with `do'.
12101212
(when cider-repl-require-ns-on-set
12111213
(cider-nrepl-sync-request:eval (format "(require '%s)" ns) connection))
12121214
(cider-nrepl-request:eval (format "(in-ns '%s)" ns)

0 commit comments

Comments
 (0)