summaryrefslogtreecommitdiff
path: root/nrepl-client.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-02-07 00:41:10 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2016-02-07 20:18:17 +0000
commit4ff8ed931df37b9dd48514c8a0ea9025fb3411df (patch)
treec5f3c9ed2efc960247560042cb5fcf3a0d8959ba /nrepl-client.el
parent39e41a2d65b76f9c71d8222ebeddc038789501da (diff)
Reimplement pprint-eval in terms of regular eval
This adds a function but makes three others obsolete. It also means anything that works for regular eval (like the spinner and overlays) also works for pprint.
Diffstat (limited to 'nrepl-client.el')
-rw-r--r--nrepl-client.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/nrepl-client.el b/nrepl-client.el
index d20fb589..be812c0e 100644
--- a/nrepl-client.el
+++ b/nrepl-client.el
@@ -1020,12 +1020,13 @@ If LINE and COLUMN are non-nil and current buffer is a file buffer, \"line\",
"line" line
"column" column)))))
-(defun nrepl-request:eval (input callback connection &optional session ns line column)
+(defun nrepl-request:eval (input callback connection &optional session ns line column additional-params)
"Send the request INPUT and register the CALLBACK as the response handler.
The request is dispatched via CONNECTION and SESSION. If NS is non-nil,
include it in the request. LINE and COLUMN, if non-nil, define the position
-of INPUT in its buffer."
- (nrepl-send-request (nrepl--eval-request input session ns line column)
+of INPUT in its buffer.
+ADDITIONAL-PARAMS is a plist to be appended to the request message."
+ (nrepl-send-request (append (nrepl--eval-request input session ns line column) additional-params)
callback
connection))