* [PATCH] ob-clojure: cider api change
@ 2015-10-11 12:33 Feng Zhou
2015-10-11 21:33 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Feng Zhou @ 2015-10-11 12:33 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 174 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 327 bytes --]
[-- Attachment #2: 0001-ob-clojure-cider-api-change.patch --]
[-- Type: text/x-patch, Size: 1179 bytes --]
From 0de9742a6f1f1e41880a215a46278f6c56daf645 Mon Sep 17 00:00:00 2001
From: Feng Zhou <zf.pascal@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-11 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 12:33 [PATCH] ob-clojure: cider api change Feng Zhou
2015-10-11 21:33 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.