emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question regarding org-babel-eval and ob-erlang


From: Ihor Radchenko
Subject: Re: Question regarding org-babel-eval and ob-erlang
Date: Sat, 31 Aug 2024 18:38:22 +0000

Zelphir Kaltstahl <zelphirkaltstahl@posteo.de> writes:

> I see in the source code of org-mode, that `org-babel-eval' calls 
> `org-babel--shell-command-on-region', but I failed to identify so far, where 
> the 
> portions of the code are, that are responsible for looking up binaries on the 
> `PATH' directories.

In the nutshell, `org-babel--shell-command-on-region' does

</path/to/shell-file-name> -c <command>

You may try calling this from emacs via M-x shell-command
to investigate what is happening.

> I would like to create a merge request for `ob-erlang', fixing this behavior, 
> possibly introducing a new defcustom, as someone mentioned in the above 
> linked 
> issue. I found the part where "erl" is in the code of `ob-erlang', but now I 
> don't know how to proceed and whether it is really necessary, or there is a 
> simple solution to make org-babel find the binaries on the `PATH' or 
> `exec-path'.
>
> My goal is to make the project self-contained. I do not want to install 
> Erlang 
> system-wide and hard-code `PATH' or similar things. I intentionally use guix 
> profile to have things local in the project directory. I am using guix 
> profile 
> instead of guix shell, in order to have a predictable bin directory, that I 
> can 
> add to `PATH'.

One way could be specifying full path to "erl", but I am not familiar
with ob-erlang and with Guix to suggest anything specific.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]