From: Feng Zhou <zf.pascal@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ob-clojure: cider api change
Date: Sun, 11 Oct 2015 20:33:57 +0800 [thread overview]
Message-ID: <CAOVQ3AwQCqj_qnXzWxV8xBo78kKk6U=xoV-uSL3xL0JeypVEbg@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2015-10-11 12:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-11 12:33 Feng Zhou [this message]
2015-10-11 21:33 ` [PATCH] ob-clojure: cider api change Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOVQ3AwQCqj_qnXzWxV8xBo78kKk6U=xoV-uSL3xL0JeypVEbg@mail.gmail.com' \
--to=zf.pascal@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).