From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Why ob-clojure.el does not respect :dir header argument? Date: Wed, 28 Jun 2017 19:01:22 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11478d909c15010553031c28" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQAjO-0001Jp-3c for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:01:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQAjM-00071G-W7 for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:01:58 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36555) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQAjM-0006xe-Pu for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 07:01:56 -0400 Received: by mail-wm0-x229.google.com with SMTP id 62so49744136wmw.1 for ; Wed, 28 Jun 2017 04:01:54 -0700 (PDT) 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: Org-mode --001a11478d909c15010553031c28 Content-Type: text/plain; charset="UTF-8" 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/ --001a11478d909c15010553031c28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In Org-mode Info page, the header argument `:d= ir` is used to=C2=A0specify 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]=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): stardivine= r =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 B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433Blog: http://s= tardiviner.github.io/
--001a11478d909c15010553031c28-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Why ob-clojure.el does not respect :dir header argument? Date: Thu, 29 Jun 2017 12:40:08 +1000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1147a8621259330553103866" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQPNM-0003Dw-GT for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 22:40:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQPNL-0002RL-C1 for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 22:40:12 -0400 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]:35139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQPNL-0002QG-75 for emacs-orgmode@gnu.org; Wed, 28 Jun 2017 22:40:11 -0400 Received: by mail-qk0-x22b.google.com with SMTP id 16so66213645qkg.2 for ; Wed, 28 Jun 2017 19:40:09 -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: "numbchild@gmail.com" Cc: Org-mode --001a1147a8621259330553103866 Content-Type: text/plain; charset="UTF-8" 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 --001a1147a8621259330553103866 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
ob-clojure is limited by what can be done via the interfac= es offered by cider. Have a look at the ob-clojure.el source code - it is v= ery simple and does not have options/interfaces to support the full range o= f possible source block headers. Someone may be able to implement this, but= nobody has. Feel free to have a go at it.

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



On 28 June 2017 at 21:01, nu= mbchild@gmail.com <numbchild@gmail.com> wrote:
In Org-mode Info pa= ge, the header argument `:dir` is used to=C2=A0specify the default director= y for code block execution.
But `ob-clojure` with `cider` = as backend, will always use the `cider-jack-in` directory as default workin= g directly. Is there a way to change this?

=
<= div dir=3D"ltr">[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 CDD= D B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div>



--
regards,

Tim

--
T= im Cross

--001a1147a8621259330553103866-- 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--