Re: Possible bugs in org-babel-temp-stable-file

2022-10-24 Thread Ihor Radchenko
Ferdinand Pieper writes: > Ihor Radchenko writes: > >> 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. > > Yes, but not for header argument evaluation (which I think is

Re: Possible bugs in org-babel-temp-stable-file

2022-10-24 Thread Ferdinand Pieper
Ihor Radchenko writes: > 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. Yes, but not for header argument evaluation (which I think is reasonable). An example of what I meant:

Re: Possible bugs in org-babel-temp-stable-file

2022-10-23 Thread Ihor Radchenko
Ferdinand Pieper 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 >>

Possible bugs in org-babel-temp-stable-file (was: [PATCH] Add light argument to org-babel-lob-get-info)

2022-10-23 Thread Ferdinand Pieper
ssible bugs in org-babel-temp-stable-file: 1. Prefix could be an empty string and that would break the filename extension, because (expand-file-name "" org-babel-temporary-stable-directory) would not add a slash in the path. 2. The org-babel-temporary-stable-directory is only created upon

Re: Possible bugs in org-babel-temp-stable-file

2022-10-23 Thread Ferdinand Pieper
Ihor Radchenko writes: > Fixed now. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=69e3a4db3d0c54b4165761f56523da4962eff74c Seems good, thanks. >> It could also be nice to add an extra argument to force the use of >> the local org-babel-temporary-stable-directory for remote

Re: Possible bugs in org-babel-temp-stable-file (was: [PATCH] Add light argument to org-babel-lob-get-info)

2022-10-23 Thread Ihor Radchenko
Ferdinand Pieper writes: >> Have you seen org-babel-temp-stable-file? > > I have not. Seems really useful, thanks for mentioning. I wrote my functions > before org-babel-temp-stable-file was added, but seems I can simplify them > now quite a bit. > > I noticed two po