emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider 5f705b0a3a 02/14: Use tooling-eval in cider-repl-set


From: ELPA Syncer
Subject: [nongnu] elpa/cider 5f705b0a3a 02/14: Use tooling-eval in cider-repl-set-ns
Date: Fri, 29 Apr 2022 09:58:04 -0400 (EDT)

branch: elpa/cider
commit 5f705b0a3a0266e4e64bc37016135a6284d2321f
Author: yuhan0 <qythium@gmail.com>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    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

[Prev in Thread] Current Thread [Next in Thread]