File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -659,6 +659,17 @@ text property `cider-old-input'."
659
659
(cider-eval-and-get-value
660
660
" (clojure.core/map clojure.core/str (clojure.core/all-ns))" ))
661
661
662
+ (defun cider-repl-switch-ns-handler (buffer )
663
+ " Make a nREPL evaluation handler for the REPL ns switching."
664
+ (nrepl-make-response-handler buffer
665
+ (lambda (buffer value ))
666
+ (lambda (buffer out )
667
+ (cider-repl-emit-output buffer out))
668
+ (lambda (buffer err )
669
+ (cider-repl-emit-err-output buffer err))
670
+ (lambda (buffer )
671
+ (cider-repl-emit-prompt buffer))))
672
+
662
673
(defun cider-repl-set-ns (ns )
663
674
" Switch the namespace of the REPL buffer to NS.
664
675
@@ -672,7 +683,7 @@ namespace to switch to."
672
683
(with-current-buffer (cider-current-repl-buffer)
673
684
(cider-eval
674
685
(format " (in-ns '%s ) " ns)
675
- (cider-repl-handler (current-buffer ))))
686
+ (cider-repl-switch-ns- handler (current-buffer ))))
676
687
(error " Cannot determine the current namespace " )))
677
688
678
689
You can’t perform that action at this time.
0 commit comments