From 5b6e4f467bd00de9f53975baafc24756fd91ddf4 Mon Sep 17 00:00:00 2001 From: Seonho Kim Date: Fri, 6 May 2016 13:35:09 +0900 Subject: [PATCH] Fix: for nrepl 0.2.12 API add cider related parameters for ``nrepl-sync-request:eval`` --- slamhound.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slamhound.el b/slamhound.el index 44d661c..8ee0131 100644 --- a/slamhound.el +++ b/slamhound.el @@ -57,7 +57,11 @@ Requires active nrepl or slime connection." (interactive) (let* ((code (slamhound-clj-string buffer-file-name)) - (result (plist-get (nrepl-send-string-sync code) :stdout))) + (dict (nrepl-sync-request:eval code + (cider-current-connection) + (cider-current-session) + (cider-current-ns))) + (result (nrepl-dict-get dict "out"))) (if (string-match "^:error \\(.*\\)" result) (error (match-string 1 result)) (goto-char (point-min))