From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: Why ob-clojure.el does not respect :dir header argument? Date: Thu, 29 Jun 2017 13:13:45 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1b440a45d7250553125f2c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQRmV-0000NE-BS for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 01:14:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQRmT-0007w6-T2 for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 01:14:19 -0400 Received: from mail-wr0-x229.google.com ([2a00:1450:400c:c0c::229]:34517) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQRmT-0007vl-KD for emacs-orgmode@gnu.org; Thu, 29 Jun 2017 01:14:17 -0400 Received: by mail-wr0-x229.google.com with SMTP id 77so183577767wrb.1 for ; Wed, 28 Jun 2017 22:14:17 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Tim Cross Cc: Org-mode --94eb2c1b440a45d7250553125f2c Content-Type: text/plain; charset="UTF-8" I will dive into source code, and try whether I can add advice on ob-clojure.el to inject Org-mode file directory into CIDER working directory everytime executing the clojure babel src block. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Thu, Jun 29, 2017 at 10:40 AM, Tim Cross wrote: > ob-clojure is limited by what can be done via the interfaces offered by > cider. Have a look at the ob-clojure.el source code - it is very simple and > does not have options/interfaces to support the full range of possible > source block headers. Someone may be able to implement this, but nobody > has. Feel free to have a go at it. > > IMO ob-clojure is only written to do very basic clojure code evaluation. > If you want something more complex, you have to add that hyourself. > > > > On 28 June 2017 at 21:01, numbchild@gmail.com wrote: > >> In Org-mode Info page, the header argument `:dir` is used to specify the >> default directory for code block execution. >> But `ob-clojure` with `cider` as backend, will always use the >> `cider-jack-in` directory as default working directly. Is there a way to >> change this? >> >> [stardiviner] GPG key ID: 47C32433 >> IRC(freeenode): stardiviner Twitter: @numbchild >> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 >> Blog: http://stardiviner.github.io/ >> > > > > -- > regards, > > Tim > > -- > Tim Cross > > --94eb2c1b440a45d7250553125f2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I will dive into source code, and try whether I can add ad= vice on ob-clojure.el to inject Org-mode file directory into CIDER working = directory everytime executing the clojure babel src block.

= [stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &= lt;Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433<= br>IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Tw= itter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2= =A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/

On Thu, Jun 29, 2017 at 10:40 AM, Tim Cross = <theophilusx@gmail.com> wrote:
ob-clojure is limited by what can be done via the= interfaces offered by cider. Have a look at the ob-clojure.el source code = - it is very simple and does not have options/interfaces to support the ful= l range of possible source block headers. Someone may be able to implement = this, but nobody has. Feel free to have a go at it.

IMO = ob-clojure is only written to do very basic clojure code evaluation. If you= want something more complex, you have to add that hyourself.=C2=A0



On 28 June 2017 at 21:01, numbchild@gmail.com <= span dir=3D"ltr"><numbchild@gmail.com> wrote:
In Org-mode Info page, the header argument= `:dir` is used to=C2=A0specify the default directory for code block execut= ion.
But `ob-clojure` with `cider` as backend, will always= use the `cider-jack-in` directory as default working directly. Is there a = way to change this?

[stardiviner]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 <Hack this world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key= ID: 47C32433
IRC(freeenode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 Twitter:=C2=A0 @numbchild
Key fingerprint =3D 9BAA 92BC CDDD B= 9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/



--
=
regards,

Tim

--Tim Cross


--94eb2c1b440a45d7250553125f2c--