From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OJf7FrghbWdwVwAA62LTzQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 09:28:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OJf7FrghbWdwVwAA62LTzQ (envelope-from ) for ; Thu, 26 Dec 2024 10:28:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jcOzYRBO; 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=1735205304; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LhLAEBxYg5P/JA2AyZFR6WRS2b6r7pOpuOEXz7xXAOQ=; b=sZEn+W/2bo7bBxlBcQ8gQ+G+lHo5IlOxPHIhZHcJCsL9+4CjvlHx0/MR08XDfsIoUuqhlX Eg4dpaJJEQQVNNlmwffGInaa14JvhtQPblNinj3FfGv4Zq6gVV3j+XkocRpUDr6zFfJard A+D5ODvXEvtA3J1MgtJ2ExiRtCrFVcgdUegSigcYdN/YlLpV0VCeFuzO4UdqXUJLtbaM4i /tIUpj6PoXVWV/Ui5gyyjyDFURhxAZuKKs8gTjEg42qjN4g9MTsTEvVJ/UP9NnGkWc+sk8 OXd4D+37+24rQ9sCc+r4HNN5csL5DirduN+m8LZ/QKEYdwNM8WaYcf6dB7pw0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jcOzYRBO; 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=1735205304; a=rsa-sha256; cv=none; b=F/79bz7czTVQrUP5xebtAWr9z3gqhEbJtZbaxyKYi4uwulR8XBZGWrNEiaBxsYSmfK7JHv VwQuHf1tkm3RDlyYP1XYiz7tn8sXZP2Sonz+KHZvLOwZOPpURpeMtEEbsgUD8OSyn5C6An lssR7kCbnxJPA6fHntWBk42ll+JG3OYR+ClnF6EioVv3XlUmC+YGlO64bFMh3Y6FKatUyj 5OQlRvfXbdc4lNKPOw8reIS4+4GmotBS9AmChOdqtpQpYI5Xb2kdFhjrn2vvHPeSeM1zVz LTXafYkZhcM820werkTyaYPhQiNHhcDyg8AD9sbSPfvvKBXk/Yto+dmobN+9nA== 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 7DB0482755 for ; Thu, 26 Dec 2024 10:28:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQk9t-0001lQ-QO; Thu, 26 Dec 2024 04:27:57 -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 1tQk9s-0001l7-Db for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 04:27:56 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQk9q-0007hr-HT for emacs-orgmode@gnu.org; Thu, 26 Dec 2024 04:27:56 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7F355240027 for ; Thu, 26 Dec 2024 10:27:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735205272; bh=b9Wn3VjUmqIbN9etFGaU+rrNVCFzzKcxfi1R4cS+Y48=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=jcOzYRBOJ9hIb4rgFC+rZVCB5ziwtDuFKBKHXW4yQm14U+4BQakBbA0vxeNFNOnfM 6A9dFm83ndxbas8b8URubj+ri71M1PDtnKgSx+htA8eQlWL5RTC6b7jctHVW4auByL y0wKBEscoliti9Khk9lUv81cxhYd1tIZFL55IdedHsogpnnCu7ODBNF3O09tggqX/7 m8rKBpc/VTRNZk6H8sj2HCzkkP3clOklwbtr24jpNqsIvwHVa/Ysq3K/3KaFnUaoeq FppjvnPMYUo+CaAdhmUWjQ4IO/Iy5flQi1Nsn0g8ef0KPXuyE7jRfFqzNqKCyRM/pr 8JPPixzIGX/Ag== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YJjw80kr4z9rxG; Thu, 26 Dec 2024 10:27:51 +0100 (CET) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Aitenate , 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:29:22 +0000 Message-ID: <87a5ciyeq5.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_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: mx11.migadu.com X-Migadu-Spam-Score: -8.97 X-Spam-Score: -8.97 X-Migadu-Queue-Id: 7DB0482755 X-TUID: JC6K2CcV4dZW Rudolf Adamkovi=C4=8D writes: >> The aim is to not need to define a filename for each image, to minimise= =20 >> the boilerplate. > > +1 This should be built into Org and enabled by default. > > I currently generate image names with a custom snippet, but it gets > trying and should not be necessary in the first place. Do you want to create a patch providing this functionality? > Instead, Org should generate a unique file name automatically, similar > to how tangle ':comments' work, and use that as the default value for > the ':file` argument, getting rid of the dreaded error message > > org-babel-execute:LANG: You need to specify a :file parameter Do you want to extend `org-babel-generate-file-param' to return something even when src block is not named and :file-ext is not given? But how will you know the desired extension? --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at