From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 0OQfDTWybme0EgEAqHPOHw:P1 (envelope-from ) for ; Fri, 27 Dec 2024 13:57:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0OQfDTWybme0EgEAqHPOHw (envelope-from ) for ; Fri, 27 Dec 2024 14:57:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b=1N8SuKVx; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="j EsVi7/"; 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=adamkovic.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735307828; 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=lY63+RMnHLhUC07VqVF07fq+xIkEUFwO8U7iIRn2qBI=; b=dLqvuqanv9OXQMIa3hl2lifcZN42qAZDDUUBbdcpeHrjhGxdV/nX0Li7zuSNVogQIOr6nW Wf0sY5DSw+mlZvx0U27STqdMHw1a+/8PADQMc4LVYQAHCF6oFJApx+3hg0w77W40MlC3X9 ch9GY/rt4ZLVO+7CF8FdEQhSzDsajzu3Cq3vRIzOQ7FHefqAbWDKCgu0Zq5zrCatHA/yY1 3ObOu1rBwxxptYdilpoDAretapy0ToNshuPZIz6kNA/r5VgMmRklRaLV4zq5rXEs7avVmQ wF0J1M798YYZzSdwxMsGjTofgm2+SacbgmZGhMORDwutbDozLBzu6WV5c4IlYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b=1N8SuKVx; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="j EsVi7/"; 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=adamkovic.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735307828; a=rsa-sha256; cv=none; b=cyVY12QYiNIi6NspR6uUd+B4/nvpKFkaJDjYGkx+rwNiSyiZ1+FPZy1Dg0WrynSHmdHwaD csmcoUWzF80GtdPp/cFZvPO8L6XRjBVPog6fBdmHkaiPKZJXPaznRF2WKD8xsWUYEK4wj1 wCKXmjJLQlF1pvoObcWkXxMYVMTTwwGenThAXCZkQbQjSheSVhDDWqh6RsweSdFOUu5llm qfcm5xH2GvRgtB91dHM97agfG6GYlH4qkYwhfjNvumIJgzkJe0WRMXJd0oS74TFHiC2rM0 rv8u4rVRpn2cloiUVjs+m7AD8bd0NPGtz2XUXTLds9VZLxTybwOQPXodeDkmVQ== 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 23AE987714 for ; Fri, 27 Dec 2024 14:57:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRApM-0000bf-S0; Fri, 27 Dec 2024 08:56:32 -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 1tRApF-0000bF-F3 for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 08:56:25 -0500 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRApD-0006uX-8Y for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 08:56:24 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 111DA2540182; Fri, 27 Dec 2024 08:56:22 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 27 Dec 2024 08:56:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1735307781; x=1735394181; bh=lY63+RMnHLhUC07VqVF07fq+xIkEUFwO 8U7iIRn2qBI=; b=1N8SuKVxxZsQUi3XC8rwGi8THc6yaCstXuG3SLRib1K+WHn7 I5yr6rDCpq/6ea0estx3PoSC7IYxyE4uohc2n0a2waXJECZeuSiXN0sd6OupGwQU k7osdMX3PD29+81NfoUtEtNwPgTBUsBWYfjgkyg3aLj+yH7lECaXIqTZENHCAxsm xDEYKGcnagDS6BX/tjC3O7HtPWr0MrqP9nF+MCS+jIysq9aioEfKudL2qwxFizv6 iH36aiNR8pjYcAbB8YgxJMhlb5KJu4/x9Z/ozOJJ5Fxfd3TZTt3M2a7Z3LDIAE9V n7PhP2QlG+GniZyJY8tf3YlV3Kaw9BZ+OjPKlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1735307781; x= 1735394181; bh=lY63+RMnHLhUC07VqVF07fq+xIkEUFwO8U7iIRn2qBI=; b=j EsVi7/x0tYTH9afbmGQixe0ssFEK2/SsNrERP58Pelfl4uU4hhLen0V4Uov6kqCo OlBnkftr0SBZcEzM6vwfNPpyApZIpXQ+vtWNiFu8F0E1MY6bcHGclEaE+uu8fe0H NjXAepL6CQ/viNE+fwRR/d2n0mG6ukC4Yggnb0pZBSfeKW3CPzWCzobBYLE1da/o 2/aFlYOZOnZVj8CuBeAEIxCeZIKJxs8qPOt7qH+ViRiCdQyX89fiTeV8uhQzjPOa uJRMtO6LoRkiKedGcxUGatfv9EwNh+MeGMfvJF4yPvePgrLTZ7MZ6oxnvVv01wzT vwuaovtKZsabPMQ+mRsew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddvtddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevuf gjfhffkfggtgfgsehtqhertddttdejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhho vhhitgcuoehruhguohhlfhesrggurghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvg hrnhepieeuteehffdugffhgeegveehvedvtdekffelhfeuledugfetgfffledthfdujeeg necuffhomhgrihhnpegruggrmhhkohhvihgtrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholhhfsegruggrmhhkohhvihgt rdhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopegvmhgrtghsqdhorhhgmhhouggvsehgnhhurdhorhhgpdhrtghpthhtoheprghithgv nhgrthgvsehouhhtlhhoohhkrdgtohhmpdhrtghpthhtohephigrnhhtrghrledvsehpoh hsthgvohdrnhgvth X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Dec 2024 08:56:20 -0500 (EST) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: Aitenate , emacs-orgmode@gnu.org Subject: Re: Generating the filename from name and file-ext for blocks with side-effects In-Reply-To: <87a5ciyeq5.fsf@localhost> References: <874j2rzso6.fsf@localhost> <87a5ciyeq5.fsf@localhost> Date: Fri, 27 Dec 2024 14:56:19 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=202.12.124.159; envelope-from=rudolf@adamkovic.org; helo=fhigh-b8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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: -10.32 X-Spam-Score: -10.32 X-Migadu-Queue-Id: 23AE987714 X-TUID: UcqxWE0f4eLL Ihor Radchenko writes: > [...] and :file-ext is not given? But how will you know the desired > extension? Oh, I missed that. My local hack assumes `.svg', but that is not enough for the general use case. Perhaps, we could save as `$BASENAME.out', detect the image format, and then rename to `$BASENAME.svg', for example. If the file is not an image, we leave it as `.out'. We can detect the image type with `image-type': (image-type "...-59b9176e65c9.svg") =3D> svg If the above is sufficient, the problem reduces to: how to compute the `$BASENAME'? [`org-babel-tangle-comment-format-beg' does something similar.] Rudy --=20 "One can begin to reason only when a clear picture has been formed in the imagination." --- Walter Warwick Sawyer, Mathematician's Delight, 1943 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org