emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generating the filename from name and file-ext for blocks with side-effe


From: Aitenate
Subject: Generating the filename from name and file-ext for blocks with side-effects
Date: Mon, 23 Dec 2024 21:58:45 +0000
User-agent: Mozilla Thunderbird

With ~:results file~, the absence of ~:file~ will cause the filename to
be constructed from the block name and ~:file-ext~, if they are both
present. To achieve that with ~:results file link~, I could only come up
with

~:var outFile=(alist-get :file (nth 2 (org-babel-get-src-block-info
't)))~

Have I missed something obvious? Is there a better way to do this?

If there isn't, would it be acceptable to add something like
`org-babel-get-src-block-param-value' or maybe more specific like
`org-babel-get-src-block-results-file-name'?

Regards,
Aitenate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]