branch: elpa/cider
commit 5f705b0a3a0266e4e64bc37016135a6284d2321f
Author: yuhan0 <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Use tooling-eval in cider-repl-set-ns
    
    to avoid overwriting the last evaled result
---
 cider-repl.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cider-repl.el b/cider-repl.el
index 496058a365..d9fcdfadeb 100644
--- a/cider-repl.el
+++ b/cider-repl.el
@@ -1229,9 +1229,9 @@ command will prompt for the name of the namespace to 
switch to."
       ;; NOTE: `require' and `in-ns' are special forms in ClojureScript.
       ;; That's why we eval them separately instead of combining them with 
`do'.
       (when cider-repl-require-ns-on-set
-        (cider-nrepl-sync-request:eval (format "(require '%s)" ns) connection))
-      (cider-nrepl-request:eval (format "(in-ns '%s)" ns)
-                                (cider-repl-switch-ns-handler connection)))))
+        (cider-sync-tooling-eval (format "(require '%s)" ns) nil connection))
+      (cider-tooling-eval (format "(in-ns '%s)" ns)
+                          (cider-repl-switch-ns-handler connection)))))
 
 
 ;;; Location References

Reply via email to