diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-08-28 22:01:52 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-08-29 01:16:29 +0100 |
commit | 9def1e7e22e36cff2bbd4c314f39aa60351fc92c (patch) | |
tree | c3e3ac69b156b404126f1380d346d1abc3bafe70 /cider.el | |
parent | 19d022ad22a4d3124a25f797e51336837b8a06af (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.el | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |