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 MF2cOg6zbmf/gQEAqHPOHw:P1 (envelope-from ) for ; Fri, 27 Dec 2024 14:00:47 +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 MF2cOg6zbmf/gQEAqHPOHw (envelope-from ) for ; Fri, 27 Dec 2024 15:00:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CDy3utXh; 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=1735308046; 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=/ytHaZL2IYTMWV6fLWBAvbl701Buz26kHmUGPmUAyfs=; b=HllzF2DZquuQfBsHm8UwKbZeISXSeQdtKBLBXDBOdsTiHMIEDrGil9Y78dAg3KEIzw5KRP TKK2El4PAgwVHlQ4/CjlsXCf2BUE6odUJIIsGlD6qT6FPG4fO8pMw5UDwkHpLPl4iny/gi +jMuf/xtHS9/NvU/jJOe6vxPh6elESN+2e131tFObJeEkRT8+s/p7sOFZ++9eKxVRYJ3U1 XUWb8psrEqJyPBbs1UqR/lexObSBfCZWIIr1IJlJ+vf+yFemdMKFPBjXnZakI7UX14+Ntr 0qDzuclajxvrfF/cd7mGPH1jHu2alzdgMOU7UpkCg3K97R9n9U3QLe8mZBV5KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=CDy3utXh; 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=1735308046; a=rsa-sha256; cv=none; b=BJvEryHGHhyW8anKjQn/ohrZrkmqjSiH0eQ/RDm44zzDh5I96WscaSZvqWwPwPQrnYb+n8 ZODTnA6vF/iRXVc0yay156V/nzHeCwNEZE1TjxxSxeUYdWDrqDJUw45v2ePVaYpUPrp0U1 g99Esac+Gbs1odoMy3cu1wDx0CaRii21Mn8jD70ee4fgUyuK6NPAvkBokIythiZd7s1tMG LgUzxIfEiKW9jQmLpzJ71RtcjWN5FR2mNUyImLLfTnYmUtX3jk5zi3CUDPkPozF+uAns0R HoTzkqKS+FKLfNn+H8yoO5dMVjtUdxxgwjf12zGBxmd5UbI1yktbaCR3+s9tCw== 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 C74E487991 for ; Fri, 27 Dec 2024 15:00:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRAsp-0001z7-Ar; Fri, 27 Dec 2024 09:00:07 -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 1tRAsj-0001yF-LB for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 09:00:01 -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 1tRAsd-0007jX-BA for emacs-orgmode@gnu.org; Fri, 27 Dec 2024 08:59:57 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 97B5E240101 for ; Fri, 27 Dec 2024 14:59:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735307992; bh=GqadwuXbrp4WTj7yWmJgnfpfxcdkiFQH3h3up4y2jSs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=CDy3utXhblcELLSrkCp/o15GaTbqFxwo2j1jmy6QvFC8LsPeFJl/2DqgzwV2p8jUN hRTBXjO3ItSvb/gPFt1O2f6uHc6Sdi6YbVb3abVVNx+PolHDgYGF4G1ANZH1JV7IQT 5Wuj2AErHKImYWVuuno6IUNEHUqYyl38LDSW7bb5DQRlOqitSfZIgS945V8A8mGltb pChjvQoMqubAyrHX93HQ+1q6kufR74IpUaqjzMyei4vl3BIZOa4EyOxyskQ5rrmWfX 5TxYO52BOCNa8SVLR3fVd9YL4ds8jKV2AvgN8E7qdBXEJzN58NBczAy/MCZybSyXiL e2fDyE62hNlNg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YKRvW4FCcz6tsg; Fri, 27 Dec 2024 14:59: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> <87a5ciyeq5.fsf@localhost> Date: Fri, 27 Dec 2024 14:01:21 +0000 Message-ID: <87jzbl5ioe.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.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: mx11.migadu.com X-Migadu-Spam-Score: -8.97 X-Spam-Score: -8.97 X-Migadu-Queue-Id: C74E487991 X-TUID: i7WglVfbJYT6 Rudolf Adamkovi=C4=8D 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 Why do you think that the output file is always an image? It may not be. It can be anything. --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at