emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Why ob-clojure.el does not respect :dir header argument?
@ 2017-06-28 11:01 numbchild
  2017-06-29  2:40 ` Tim Cross
  0 siblings, 1 reply; 3+ messages in thread
From: numbchild @ 2017-06-28 11:01 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

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]           <Hack this world!>      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/

[-- Attachment #2: Type: text/html, Size: 1016 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why ob-clojure.el does not respect :dir header argument?
  2017-06-28 11:01 Why ob-clojure.el does not respect :dir header argument? numbchild
@ 2017-06-29  2:40 ` Tim Cross
  2017-06-29  5:13   ` numbchild
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Cross @ 2017-06-29  2:40 UTC (permalink / raw)
  To: numbchild@gmail.com; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

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 <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]           <Hack this world!>      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

[-- Attachment #2: Type: text/html, Size: 2206 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Why ob-clojure.el does not respect :dir header argument?
  2017-06-29  2:40 ` Tim Cross
@ 2017-06-29  5:13   ` numbchild
  0 siblings, 0 replies; 3+ messages in thread
From: numbchild @ 2017-06-29  5:13 UTC (permalink / raw)
  To: Tim Cross; +Cc: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1675 bytes --]

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]           <Hack this world!>      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 <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 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 <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]           <Hack this world!>      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
>
>

[-- Attachment #2: Type: text/html, Size: 3501 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-29  5:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-28 11:01 Why ob-clojure.el does not respect :dir header argument? numbchild
2017-06-29  2:40 ` Tim Cross
2017-06-29  5:13   ` numbchild

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