summaryrefslogtreecommitdiff
path: root/cider.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-08-28 22:01:52 +0100
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-08-29 01:16:29 +0100
commit9def1e7e22e36cff2bbd4c314f39aa60351fc92c (patch)
treec3e3ac69b156b404126f1380d346d1abc3bafe70 /cider.el
parent19d022ad22a4d3124a25f797e51336837b8a06af (diff)
Partially remove sibling connections features
- REPL buffers are no longer marked as siblings. Instead, "siblings" are identified by REPLs in the same project. - The smart dispatching logic is moved from cider-current-repl-buffer to cider-find-relevant-connection. - Killing a REPL no longer offers to kill siblings.
Diffstat (limited to 'cider.el')
-rw-r--r--cider.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/cider.el b/cider.el
index 90575365..6a12571b 100644
--- a/cider.el
+++ b/cider.el
@@ -192,8 +192,8 @@ REPL."
(defun cider-create-sibling-cljs-repl (client-buffer)
"Create a ClojureScript REPL with the same server as CLIENT-BUFFER.
-Link the new buffer with CLIENT-BUFFER, which should be the regular Clojure
-REPL started by the server process filter."
+The new buffer will correspond to the same project as CLIENT-BUFFER, which
+should be the regular Clojure REPL started by the server process filter."
(interactive (list (cider-current-repl-buffer)))
(let* ((nrepl-repl-buffer-name-template "*cider-repl CLJS%s*")
(nrepl-create-client-buffer-function #'cider-repl-create)
@@ -210,11 +210,9 @@ REPL started by the server process filter."
(alist `(("cljs" . ,cljs-buffer)
("clj" . ,client-buffer))))
(with-current-buffer client-buffer
- (setq cider-repl-type "clj")
- (setq nrepl-sibling-buffer-alist alist))
+ (setq cider-repl-type "clj"))
(with-current-buffer cljs-buffer
(setq cider-repl-type "cljs")
- (setq nrepl-sibling-buffer-alist alist)
(cider-nrepl-send-request
(list "op" "eval"
"ns" (cider-current-ns)