all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Generating the filename from name and file-ext for blocks with side-effects
@ 2024-12-23 21:58 Aitenate
  2024-12-25 15:30 ` Ihor Radchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Aitenate @ 2024-12-23 21:58 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-26  9:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-23 21:58 Generating the filename from name and file-ext for blocks with side-effects Aitenate
2024-12-25 15:30 ` Ihor Radchenko
2024-12-25 19:03   ` Aitenate
2024-12-26  8:26     ` Rudolf Adamkovič
2024-12-26  9:29       ` Ihor Radchenko
2024-12-26  9:08     ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.