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