From: "Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org>
To: Dominik Schrempf <dominik.schrempf@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Org babel source blocks ignore buffer-local variables
Date: Mon, 6 Sep 2021 18:32:47 +0000 [thread overview]
Message-ID: <6EF6CA3E-7E16-42E6-9E38-86BDEC95F881@health.ucsd.edu> (raw)
In-Reply-To: <87lf4ajd7u.fsf@gmail.com>
> On Sep 6, 2021, at 1:53 AM, Dominik Schrempf <dominik.schrempf@gmail.com> wrote:
>
> Thank you, this solution works. May I ask about the reasons of such a
> distinction?
[i.e. between exec-path and (getenv "PATH")]
Well, this is how `shell' and `shell-command-on-region' both do it, and they seem to be the underlying engines. So you might ask elsewhere why it is so.
There are probably a lot of circumstances in which the distinction makes sense in babel shell blocks.
You would not want to use exec-path if your src block was being executed remotely, for example.
I think different shells can sensibly use different PATH defaults, so that might be another circumstance in which the default to exec-path could trip you up.
HTH,
Chuck
prev parent reply other threads:[~2021-09-06 18:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-04 12:30 Org babel source blocks ignore buffer-local variables Dominik Schrempf
2021-09-04 17:14 ` Berry, Charles via General discussions about Org-mode.
2021-09-06 8:53 ` Dominik Schrempf
2021-09-06 18:32 ` Berry, Charles via General discussions about Org-mode. [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=6EF6CA3E-7E16-42E6-9E38-86BDEC95F881@health.ucsd.edu \
--to=emacs-orgmode@gnu.org \
--cc=ccberry@health.ucsd.edu \
--cc=dominik.schrempf@gmail.com \
/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).