summaryrefslogtreecommitdiff
path: root/cider-client.el
diff options
context:
space:
mode:
authorVitalie Spinu <spinuvit@gmail.com>2017-07-13 12:03:37 +0200
committerBozhidar Batsov <bozhidar.batsov@gmail.com>2017-07-13 14:15:03 +0300
commit4733e02bf090af0f98958b74eaa0f8b07f885d3a (patch)
treea4954a16ae40a67cadc7f5f895d4f850284124c5 /cider-client.el
parent60660863eba6ab6d94047d4978057a38eed435ca (diff)
[#1875] In cljc files eval into both clj and cljs repls
Diffstat (limited to 'cider-client.el')
-rw-r--r--cider-client.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/cider-client.el b/cider-client.el
index 639e309f..29134c1c 100644
--- a/cider-client.el
+++ b/cider-client.el
@@ -669,12 +669,13 @@ Return the id of the sent message."
(nrepl--mark-id-completed id))
id))
-(defun cider-nrepl-request:eval (input callback &optional ns line column additional-params)
+(defun cider-nrepl-request:eval (input callback &optional ns line column additional-params connection)
"Send the request INPUT and register the CALLBACK as the response handler.
If NS is non-nil, include it in the request. LINE and COLUMN, if non-nil,
define the position of INPUT in its buffer. ADDITIONAL-PARAMS is a plist
-to be appended to the request message."
- (let ((connection (cider-current-connection)))
+to be appended to the request message. CONNECTION is the connection
+buffer, defaults to (cider-current-connection)."
+ (let ((connection (or connection (cider-current-connection))))
(nrepl-request:eval input
(if cider-show-eval-spinner
(cider-eval-spinner-handler connection callback)