Hello,

This patch makes ob-clojure compatible with latest cider.
more details can be found here:
https://github.com/clojure-emacs/cider/issues/1302

Best Regards,
Feng Zhou
From 0de9742a6f1f1e41880a215a46278f6c56daf645 Mon Sep 17 00:00:00 2001
From: Feng Zhou <zf.pas...@gmail.com>
Date: Sun, 11 Oct 2015 20:18:08 +0800
Subject: [PATCH] ob-clojure: cider api change

---
 lisp/ob-clojure.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
index af94beb..7631419 100644
--- a/lisp/ob-clojure.el
+++ b/lisp/ob-clojure.el
@@ -44,7 +44,8 @@
   (require 'cl))
 
 (declare-function nrepl-dict-get "ext:nrepl-client" (dict key))
-(declare-function nrepl-sync-request:eval "ext:nrepl-client" (input &optional ns session))
+(declare-function nrepl-sync-request:eval "ext:nrepl-client"
+		  (input connection session &optional ns))
 (declare-function slime-eval "ext:slime" (sexp &optional package))
 
 (defvar org-babel-tangle-lang-exts)
@@ -91,7 +92,8 @@
        (let ((result-params (cdr (assoc :result-params params))))
 	 (setq result
 	       (nrepl-dict-get
-		(nrepl-sync-request:eval expanded)
+		(nrepl-sync-request:eval
+		 expanded (cider-current-connection) (cider-current-session))
 		(if (or (member "output" result-params)
 			(member "pp" result-params))
 		    "out"
-- 
1.9.1

Reply via email to