From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gAdBD8IudGcYQQAA62LTzQ:P1 (envelope-from ) for ; Tue, 31 Dec 2024 17:49:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gAdBD8IudGcYQQAA62LTzQ (envelope-from ) for ; Tue, 31 Dec 2024 18:49:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VzceaVN0; 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=1735667394; 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=FbygttgBEtAWA61kj8s0IGBNXdqaW7XoPozWqb1Qq50=; b=dMm9ox7QUhS7zjmw1I/BIKR2utV9YLgIY+9ElSVjaXmvifMnbPXAXEWVZTsqJvFNP+zXW7 UxvKoWzJCGoOz1iz78l8kRF3fN6HxtchRnzuBB/1K1MxTC7QKm4pSE/1muyYz5NwFbx43o 1xs0YaVWDR/izwHnZgDcwg4f46/O1OUQNyTFw8Lbu66atNa6Zxm5UajsMOf3+iYw6IJnJR X7GY2GH6JQba0zNz4OJTKJjgxVUm+KaR+xOMnZuX+hmHt8zHMtwbqXAOBII3wvpajoywL7 0Pa5sDOrombtdtPwPnTXAEfQNOphKP2rNTR9ir/VREhaL9p2Yuy71fQTy9XCTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VzceaVN0; 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=1735667394; a=rsa-sha256; cv=none; b=ulUaoKAbQrXprsiDv+GLEteIQzIx+fe4kqJU6KHiYi89SdvhG1qIhY7mX/G9JyhnICZSDo H7OE/Wb0+MN72tGyN0z7JNFRWGSDuhrswPU400KlWAmsEUVvh0QCPwIZhc7AjnUKcfexNO aw/pvjcnc6N0QvlvrZxkQu+WI2AP52ubHkRVexz+nRLFqQynr6FgqFiO0snNBoGjU/rWN5 UPwJ/24Evr0PBFLSKec4MWtadYfNrlM++Y0AQGZagA84sQKqwzdweHFYCu3Rl/0anXSSTu nU1W60fC4J79wU8A5rboeBX9XyWIJWNT+GVwj1CT7zsQI7kwdBNG0jWVHJRPAA== 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 E9F6D957E7 for ; Tue, 31 Dec 2024 18:49:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSgMy-0005zp-7G; Tue, 31 Dec 2024 12:49:28 -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 1tSgMr-0005yJ-P6 for emacs-orgmode@gnu.org; Tue, 31 Dec 2024 12:49:22 -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 1tSgMn-0000Ho-Rv for emacs-orgmode@gnu.org; Tue, 31 Dec 2024 12:49:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1F485240027 for ; Tue, 31 Dec 2024 18:49:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735667354; bh=dtJwhIsdfHlo03KylRjPU8w5AuLaJwY7Ze8SKhivN6c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=VzceaVN0Ty2ROb/2aYQtE/2wkEDdQLyP7CDDSY23U/I+hYzFQ/pWRGxXD/yOT0n/v dUjBdEXqxp5zn2YTMFr7nnKiHEtHWc3h6P7ju2juPfMnuKPZLajITUghSa8tujXb03 E9E+BzidnVLoaJlqe/Byiolkhgonyk13265W1KlXRRkhikOKDQsKJ5bpFVa1XiQfTF x/x8SYkeR1+ckhrL4mA87ON2WW5zIRGDvqb3a/0DxxbY3Kyq4d2fZFjKUzw+V5ecY+ 9Sn/xmibUxm26nSH3Xu3EC0hItFyBihX7OnP6+UkSAdaG+6c54OrgVNVuY5pvY9LNQ ar8yqtdDBs2Tg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YN0pK5W7Sz9rxB; Tue, 31 Dec 2024 18:49:13 +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> <87jzbl5ioe.fsf@localhost> Date: Tue, 31 Dec 2024 17:50:44 +0000 Message-ID: <87ed1nhhcb.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -9.18 X-Spam-Score: -9.18 X-Migadu-Queue-Id: E9F6D957E7 X-Migadu-Scanner: mx10.migadu.com X-TUID: iXRNx9YEk4hY Rudolf Adamkovi=C4=8D writes: >>> (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. > > I do not think that. I specifically addressed the non-image case: the > file would retain the `out' extension. Reasonable. > But, we could be smart about other file types as well, if we use > e.g. `file', like `dired-show-file-type' does. Yes. Although there is another possible problem - current implementation computes file _before_ the code block is evaluated. In fact, this thread started from exactly this scenario - get the file name before it appears on disk. And we have no clue about what will be inside the file at that point. --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at