Re: [O] Why ob-clojure.el does not respect :dir header argument?

2017-06-28 Thread numbch...@gmail.com
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, numbch...@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
>
>


Re: [O] Why ob-clojure.el does not respect :dir header argument?

2017-06-28 Thread Tim Cross
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, numbch...@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


[O] Why ob-clojure.el does not respect :dir header argument?

2017-06-28 Thread numbch...@gmail.com
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/