From: Ihor Radchenko <yantar92@posteo.net>
To: Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Question regarding org-babel-eval and ob-erlang
Date: Sat, 31 Aug 2024 18:38:22 +0000 [thread overview]
Message-ID: <87a5gsleqp.fsf@localhost> (raw)
In-Reply-To: <d9faf0a7-04d9-46c1-ad52-211b3fa6ec69@posteo.de>
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>
prev parent reply other threads:[~2024-08-31 18:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-24 19:18 Question regarding org-babel-eval and ob-erlang Zelphir Kaltstahl
2024-08-31 18:38 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a5gsleqp.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=zelphirkaltstahl@posteo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).