From: Dominique Dumont <dominique.dumont@netc.fr>
To: emacs-orgmode@gnu.org
Subject: eval with :dir in included file
Date: Fri, 07 Jul 2023 17:36:23 +0200 [thread overview]
Message-ID: <3508734.iIbC2pHGDl@ylum> (raw)
Hi
I have a file with this code block:
~~~ file terraform-admin.org
** Retrieve public IPs
:PROPERTIES:
:CUSTOM_ID: retrieve-public-ips
:END:
#+begin_src shell :results verbatim :dir "stacks/public-ips" :exports both
terragrunt output ips
#+end_src
~~~
Exporting this file works fine.
I have another file which imports the file above:
~~~
#+include: "../../../infra-terraform/terraform-admin.org::#retrieve-public-ips" :only-contents t
~~~
Here the export fails with this (slightly edited) error:
process-file: Setting current directory: No such file or directory, /home/domi/Documentation/admin/stacks/public-ips/
Indeed this directory does not exist: org-mode is looking for "stacks/public-ips" directory in the wrong place, i.e. org-mode
is starting to search "stacks/public-ips" from the *including* file.
Is there a way to tell org-mode to search "stacks/public-ips" directory starting from the directory of the *included* file ?
All the best
Dominique
next reply other threads:[~2023-07-07 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-07 15:36 Dominique Dumont [this message]
2023-07-07 15:44 ` eval with :dir in included file Ihor Radchenko
2023-07-19 10:10 ` Dominique Dumont
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=3508734.iIbC2pHGDl@ylum \
--to=dominique.dumont@netc.fr \
--cc=emacs-orgmode@gnu.org \
/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).