[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bugs in org-babel-temp-stable-file
From: |
Ihor Radchenko |
Subject: |
Re: Possible bugs in org-babel-temp-stable-file |
Date: |
Mon, 24 Oct 2022 04:12:56 +0000 |
Ferdinand Pieper <fer@pie.tf> writes:
>>> It could also be nice to add an extra argument to force the use of
>>> the local org-babel-temporary-stable-directory for remote files.
>>
>> I am not sure if it is a good idea.
>> On remote files, default-directory often points to the remote making
>> `shell-command' and similar run code on remote machine. It may not work
>> well with local temporary directory.
>
> I think you are right. Something like this could only be relevant for local
> files which execute code on remote locations (e.g. babel via the :dir
> argument) and require remote temp files instead of local ones. But that seems
> like too much of an edge case to support. If necessary a user could easily
> solve it with a small wrapper, that sets default-directory accordingly.
When you have :dir argument in a source block, default-directory is set
to :dir value during execution. This affects the location of temporary
files as well.
--
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>
- [PATCH] Add light argument to org-babel-lob-get-info, Ferdinand Pieper, 2022/10/16
- Re: [PATCH] Add light argument to org-babel-lob-get-info, Ihor Radchenko, 2022/10/17
- Re: [PATCH] Add light argument to org-babel-lob-get-info, Ferdinand Pieper, 2022/10/18
- Re: [PATCH] Add light argument to org-babel-lob-get-info, Ihor Radchenko, 2022/10/19
- Possible bugs in org-babel-temp-stable-file (was: [PATCH] Add light argument to org-babel-lob-get-info), Ferdinand Pieper, 2022/10/22
- Re: Possible bugs in org-babel-temp-stable-file (was: [PATCH] Add light argument to org-babel-lob-get-info), Ihor Radchenko, 2022/10/23
- Re: Possible bugs in org-babel-temp-stable-file, Ferdinand Pieper, 2022/10/23
- Re: Possible bugs in org-babel-temp-stable-file,
Ihor Radchenko <=
- Re: Possible bugs in org-babel-temp-stable-file, Ferdinand Pieper, 2022/10/24
- Re: Possible bugs in org-babel-temp-stable-file, Ihor Radchenko, 2022/10/24