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 (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 possible bugs in

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

2022-10-19 Thread Ihor Radchenko
Ferdinand Pieper writes: > 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. >> >>

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

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

2022-10-17 Thread Ihor Radchenko
Ferdinand Pieper writes: > 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

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

2022-10-16 Thread Ferdinand Pieper
Oct 2022 13:17:40 +0200 Subject: [PATCH] org-babel-lob-get-info: Add light argument * lisp/ob-lob.el (org-babel-lob-get-info): Add light argument to prevent recursive evaluation of lisp values in parameters. --- lisp/ob-exp.el | 2 +- lisp/ob-lob.el | 13 + lisp/ob-ref.el | 2 +- 3 fi