From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0Co8N4xXeGRtpAAASxT56A (envelope-from ) for ; Thu, 01 Jun 2023 10:32:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eA5XNoxXeGRWhgAAG6o9tA (envelope-from ) for ; Thu, 01 Jun 2023 10:32:12 +0200 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 8C903ED53 for ; Thu, 1 Jun 2023 10:32:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4diJ-0007uC-ME; Thu, 01 Jun 2023 04:31:19 -0400 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 1q4diG-0007tj-Vh for emacs-orgmode@gnu.org; Thu, 01 Jun 2023 04:31:17 -0400 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 1q4diE-0002ta-D8 for emacs-orgmode@gnu.org; Thu, 01 Jun 2023 04:31:16 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7BB21240027 for ; Thu, 1 Jun 2023 10:31:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685608272; bh=KTDLVpLI06WmeZIwSXDCAiEsEouhUq+Cg0ne5h4TpmQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=WzyF7GKZr77Y4Xmi8rZVXxj3LQEnccWLd3PVAuIpq2VaLKGr6XPBjpUJJBhqWCf3Y 7n3kKlMj6xrzbYbkZ8pXe6fvVkLusLnkDFq9iM26D9X/NDFU+M1OlvStyRLyCcyvew 0uyttWT7b6c/RBYPzfwsAaSPn9DbbYidvIcoTvLnDMJIZG/LtCfUMeBl6mAuA7wizp uRVeOPq+QTK0m3luAS6gfbbxB3Y5jWEkQri+5dUAfJTPq2gzhm6Xue489ClQRiACx9 8B4XUfHaCer3uM6Kx6YuHV8VDoQPE401Nx5slsdAcnvsJWOO4yULBiAbXiTdB2+GV6 IeP82PEeiAR2Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QWzqh0YsGz9rxR; Thu, 1 Jun 2023 10:31:11 +0200 (CEST) From: Ihor Radchenko To: Pan Xie Cc: emacs-orgmode@gnu.org Subject: Re: [FR] Should we resolve environment variables in the file link path when exporting? (was: [FR] Please add environment variable substitution in `org-display-inline-images') In-Reply-To: References: <7a012430-6084-e693-1a86-f14d0512bebc@skyguard.com.cn> <87cz2goqn2.fsf@localhost> <9105a5ca-764f-126f-a01e-2cb92c2035dd@skyguard.com.cn> <87pm6fbnlo.fsf@localhost> Date: Thu, 01 Jun 2023 08:35:41 +0000 Message-ID: <87ilc7bmw2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685608332; 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=6jbwAI3VccOgeMaYl3UOXGtJzxU8tpP++WiciYUFEuk=; b=Xv/+4zXlLqODQvR2NTpl4HO8bTC3RYLBLtfBptM+KLLdt8zxVwBsWvsHBg8NdG6Y5gjBsw 8152XMoXZ6bwcxuyPv3pdXumnnD9P8bZ0VvYPOc2Xu1NfLi2OkZBUByeIdAhBQHg0hiQbK jsnsI5hYITdgAIl4rl+3tSTW/c1Gu9XUP8OiRvSc+JkMwyOq2jMTEjURmlmHa3E9teUz28 lyEULO3StEU4U0u8AD+dq2x9oxdXjw/iRtzn8txh4o9uY/MsK6ksiNMk47fIvrzlGgwHfP cw7mWBIey22bxjaw3bgoZA1ng9mJmjXVbhEYVgavXXJyZKimyR7xf6H21wafSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WzyF7GKZ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685608332; a=rsa-sha256; cv=none; b=CmURk7TyXQc39IvoNgxbFsLDD8kRXBHVo+8e4xfJxFqJN0lSllfUJZaYuk7T0k/7t9f2ej zl/+iR9EcaI5/Br8r3z0egnQSdjOs4z58aOjBAYW0kwC+viBbBK75asNYvihHw+xZQdnXp Z00W7AJFQ2lbwxSJeqD61xyLxn3BeBZfMC7zhyXoXHOPvNQV/T4loRd3n830wwkiX4i+yR DA8gHfyJceoZTKlr8RHlSUPBC1ebXj1F34QPQ0EvXW33qr4YTpSMQBDQO6KOlG3ti8OXRf mA6IlfR9x9dtR8KLw9NwLHUqVclas5E6RKUQzTNdINLFNljc7CB6qveU/cyIsA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=WzyF7GKZ; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: 8C903ED53 X-Spam-Score: -6.12 X-TUID: fkk/9PWVZR2d Pan Xie writes: > I think we need keep consistent with the file link. Since file link will > substitute the environment variables in its file path, I guess it will > do the same thing when export to html files. It may keep the variables > when export to Org (ox-org). Since both image link and file link are > links, from user's perspective they should be consistent. This feature is not even documented. We may as well go other way and remove variable substitution from the file links and keep the rest unchanged. Not that we have to. But I think that the topic is worth discussing first. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at