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:

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
Ihor Radchenko writes: > Applied onto main. Thanks > 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 possible

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: [PATCH] Add light argument to org-babel-lob-get-info

2022-10-18 Thread Ferdinand Pieper
Ihor Radchenko writes: > I'd prefer to change LIGHT to NO-EVAL, including in > org-babel-get-src-block-info. Changing argument name in function does > not affect its caller in any way. Just need to update the function body > and docstring carefully. > > NO-EVAL is already used by

[PATCH] Add light argument to org-babel-lob-get-info

2022-10-16 Thread Ferdinand Pieper
Similar to ~org-babel-get-src-block-info~ it is sometimes useful to disable evaluation of lisp parameters when getting the info of a lob call. This patch adds an argument for that. Better name for the argument could be ~no-eval~, but I decided to stick with the naming in

Re: [PATCH] ob-gnuplot: handle remote input files

2020-10-25 Thread Ferdinand Pieper
Hi Bastien, Bastien writes: > Applied, thanks! Thank you. > The commit message and the changelog were perfect, thanks for taking > care of this. I simply added "TINYCHANGE". I signed the FSF copyright times a short while ago, so I think this is no longer necessary. Best,

[PATCH] Persistently save downloaded inline remote images

2020-09-29 Thread Ferdinand Pieper
Currently remote images are downloaded upon each display. As most of the time the images do not change in between redisplays, we can instead buffer the images locally and only update the local copy when the remote image is updated. Attached is a proposed patch. Best, >From

[PATCH] ob-gnuplot: handle remote input files

2020-09-29 Thread Ferdinand Pieper
When passing a remote file like "/ssh:myserver:/myfile.txt" to a gnuplot block as variable the gnuplot process can not access the remote data. An example: --8<---cut here---start->8--- #+begin_src gnuplot :var data="/ssh:myserver:/myfile.txt" plot data u 1:2

Re: Additonal slashes in URI sent to org-protocol

2020-05-09 Thread Ferdinand Pieper
Hey, thanks for your reply! Nicolas Goaziou writes: Please add the function modified in the commit message. Also, if you haven't signed FSF papers for copyright, you need to insert TINYCHANGE. Done. - (new-style (string= (match-string 1 fname) "?"))) + (new-style

Additonal slashes in URI sent to org-protocol

2020-04-05 Thread Ferdinand Pieper
Hi everyone, I was trying to set up org-protocol with Firefox (version 74.0) running under Windows 10. Unfortunately there seems to be an issue with additional slashes added to the URI so org-protocol can not parse it. I setup a bookmark as mentioned in [1]. I changed the bookmark content to

Additonal slashes in URI sent to org-protocol

2020-04-05 Thread Ferdinand Pieper
Hi everyone, I was trying to set up org-protocol with Firefox (version 74.0) running under Windows 10. Unfortunately there seems to be an issue with additional slashes added to the URI so org-protocol can not parse it. I setup a bookmark as mentioned in [1]. I changed the bookmark content to