From: stardiviner <numbchild@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] ob-clojure.el support :ns header argument
Date: Mon, 26 Mar 2018 12:05:48 +0800 [thread overview]
Message-ID: <955ae32f-3c93-ae3c-a9f8-28645651edc9@gmail.com> (raw)
In-Reply-To: <7ab04864-666d-b84b-b9ea-6a26868f5cdd@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 652 bytes --]
This is an extra patch. Should be with previous email's three patches.
On 03/26/2018 09:59 AM, stardiviner wrote:
>
> - support :ns header (as discussed at here
> https://github.com/clojure-emacs/clojure-mode/pull/465#discussion_r158009538)
>
> - supoort inject CIDER outside of project
>
> - support :varinitialization when :session initialization prepare.
>
>
> On 03/22/2018 01:49 AM, stardiviner wrote:
>>
>> Two patches
>>
>> One is to support ob-clojure.el future coming header argument :ns.
>>
>> The second is to support jack-in CIDER outside of Clojure project by
>> default. Not no need to ob-clojure project to be created anymore.
>>
>
[-- Attachment #1.2: Type: text/html, Size: 2733 bytes --]
[-- Attachment #2: 0001-ob-clojure.el-org-babel-execute-clojure-support-ns-h.patch --]
[-- Type: text/x-patch, Size: 1156 bytes --]
From 624e9ab91bb09caf4c438cb9eb1cedb7680755d9 Mon Sep 17 00:00:00 2001
From: Bastien <bzg@gnu.org>
Date: Mon, 26 Mar 2018 11:35:21 +0800
Subject: [PATCH] * ob-clojure.el (org-babel-execute:clojure) support :ns
header argument.
---
lisp/ob-clojure.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
index 890f60ada..62c65e971 100644
--- a/lisp/ob-clojure.el
+++ b/lisp/ob-clojure.el
@@ -55,6 +55,7 @@
(declare-function slime-eval "ext:slime" (sexp &optional package))
(defvar nrepl-sync-request-timeout)
+(defvar cider-buffer-ns)
(defvar org-babel-tangle-lang-exts)
(add-to-list 'org-babel-tangle-lang-exts '("clojure" . "clj"))
@@ -109,7 +110,9 @@ using the :show-process parameter."
(cider
(require 'cider)
(let ((result-params (cdr (assq :result-params params)))
- (show (cdr (assq :show-process params))))
+ (show (cdr (assq :show-process params)))
+ (ns (cdr (assq :ns params))))
+ (when ns (setq-local cider-buffer-ns ns))
(if (member show '(nil "no"))
;; Run code without showing the process.
(progn
--
2.16.2
next prev parent reply other threads:[~2018-03-26 4:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-21 17:49 [PATCH] ob-clojure-literate.el support :ns header and inject CIDER outside of project stardiviner
2018-03-26 1:59 ` [PATCH] ob-clojure-literate.el add some new functions stardiviner
2018-03-26 4:05 ` stardiviner [this message]
2018-03-26 4:38 ` [PATCH] ob-clojure.el support :ns header argument stardiviner
2018-03-27 3:02 ` [PATCH] ob-clojure and ob-clojure-literate support :ns header argument [V1] stardiviner
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=955ae32f-3c93-ae3c-a9f8-28645651edc9@gmail.com \
--to=numbchild@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).