From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YPhFAtocbWcOCQEAqHPOHw:P1 (envelope-from ) for ; Thu, 26 Dec 2024 09:07:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YPhFAtocbWcOCQEAqHPOHw (envelope-from ) for ; Thu, 26 Dec 2024 10:07:38 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dG0tvpGO; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735204057; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KX5O3GzKgDHvbrxabmsHjbEFcfv8GkCp0mAfkuifq4I=; b=msFtz7teJgxSt5Zs8kghptkMjyeBbEMF2oVsZro21eGIfnLQlVP7DsuCDnwyREo7RQ/RBX EOFQERiXnxRNIM6lrcnawrt8r7kuoAFkw1qHUU7wdrCrOpmdmR5Sd90GMn+veqoh+AXAg4 oeyOXTEju49eksibi+A+ojhqnSj/9/Dgisf8UqProacwmDXqtfcCudN8qqDZ5k5aArx1xX W4CwoGFAXhOMjJy4ldHTN+y+bW4glCipBYI7lQm0CqheJN2nMzpppGFYEEVPAUK1/Qa8Cc IVduFNHe4rwMEKDLYf9y97/kQV5D3SNa9wZbRsb49PePSi68tgroTXs9519aHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=dG0tvpGO; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735204057; a=rsa-sha256; cv=none; b=KVG0eghlpTSkY5LvqBeZwlh9h5Ysb8lnqSi8b+FBKxC6WQdqV/KZMKNV7PQM0Px6DSZn/M eyeJ71pv38Wk18BO1wsQRc39SHcPWOp+N5k0ePmR6xxmzYoPazaROEafrDirRyNB3S4Xnv OIgwXUL13VKCobcu2/e/EQRTlTxXFZAHW2g82//KjZ8s+VPACn1LglvyJY3AUgtFNSe3fw 8WMxX2u72Q2Ls1O9UvpYjIhQaxqh0pCOPgo65LuoJCjY9MMJ7/WTY/xl6WqNjFYTtaoUHh fgWB/D9tWDMmZh04VMoL5YXwL1XdwMxlcBylJNnKAN0WiQghExA2PxPyKFX5Lg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 963A021E6E for ; Thu, 26 Dec 2024 10:07:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQjpp-0006L0-7w; Thu, 26 Dec 2024 04:07:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQjpn-0006Kc-Jp for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 04:07:11 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQjpl-0005l7-Tc for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 04:07:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4A601240103 for ; Thu, 26 Dec 2024 10:07:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735204026; bh=8vspcf8gzv18zztHFP6WvrSoudFV79uG1oJpNmotLro=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=dG0tvpGOdmj6FGKgVcz1s8IBEc5iAvFaOw7nxD2XeHhQBuOP6i8/LI9l9gJsma4f6 1R8wVE6vUwcCo4RQA+Z0af7r5XyGaw5qrqD0sEL8JG8CbVHXJ6HCP+fxZGOBt2fsst RG6Wt3Zexk7Wn33KBubmsopBVDq+++ZU+zYOGCVqi0/KseaMAALj0tDXqSS5SuRGs/ okoYW4CGlmj94RZNcr3DF0bJ6KJ5qWeaIrDon/JSCxV0raX1JU4pw9necJvD49Gye/ juOntWv85OMt3F/lxT5duwvNkXoGs0BNCfEvViQ/fQPMX2dmWIFY5l3EiSKRVEg0Va vXnFzLQ3CzRCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YJjS934s5z6tvb; Thu, 26 Dec 2024 10:07:05 +0100 (CET) From: Ihor Radchenko To: Aitenate Cc: emacs-orgmode@gnu.org Subject: Re: Generating the filename from name and file-ext for blocks with side-effects In-Reply-To: References: <874j2rzso6.fsf@localhost> Date: Thu, 26 Dec 2024 09:08:35 +0000 Message-ID: <87ikr6yfos.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.97 X-Spam-Score: -5.97 X-Migadu-Queue-Id: 963A021E6E X-TUID: 8rwhPh9nsfkc Aitenate writes: >>> ~:var outFile=(alist-get :file (nth 2 (org-babel-get-src-block-info >>> 't)))~ >> >> Seems right, but I do not understand why you would need such thing. >> > The aim is to not need to define a filename for each image, to minimise > the boilerplate. Org has a mechanism for this, but it only works when > Org creates the file. > > Using a combination of noweb and file header arguments, with a property > drawer, I was able to have each code block only require a unique name > and the image code. That is except, because the image library creates > the file, I need to specify a var to give a filename. Hence, I poked > around until I found a way to use the computed filename. Thanks for the explanation! I do see how this can be useful. > Based on your response, maybe I'm doing something unusual. In which > case, it's not surprising I couldn't find a more obvious way. AFAIK, most people just specify the file names manually. I suspect that it is mostly because the part of Org manual explaining this is not easy to understand. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at