From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
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 6IB1K2tbeGTQ1QAASxT56A
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 01 Jun 2023 10:48:43 +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 CI2GKmtbeGSoPwEAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 01 Jun 2023 10:48:43 +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 6068FF9A9
	for <larch@yhetil.org>; Thu,  1 Jun 2023 10:48:43 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1q4dyw-0001vN-8c; Thu, 01 Jun 2023 04:48:30 -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 <yantar92@posteo.net>)
 id 1q4dyu-0001vB-Ri
 for emacs-orgmode@gnu.org; Thu, 01 Jun 2023 04:48:28 -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 <yantar92@posteo.net>)
 id 1q4dyt-0006E1-56
 for emacs-orgmode@gnu.org; Thu, 01 Jun 2023 04:48:28 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 4988E240029
 for <emacs-orgmode@gnu.org>; Thu,  1 Jun 2023 10:48:23 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1685609303; bh=gi7zYIKDvUiwgaetWcoS3SG0DaQ59O28Eyu7/7OHcb0=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From;
 b=ONFWzIpGv8nYJQCt+AjaRvNy6YzrtukOfymiQktabfMnlmWao02BR3eUzyOJdkA+h
 6kXrb9ucQmX//97xsHyrJM6z/VZpP93RkmD+dTJbhDP/ChPZ3i6L50g/jbYCR8fVSp
 gp7+B8VbfBWNBuATU7JYRwrmdVkRrmuRGo25nzIubn+d9a03d8u5qqroWoS3EevS9/
 SkCKue5A6rSH32eIHjjVxb1J50tCbokFrSEvwtW3SLTvtBADk1MjQjanEWoKlepsVA
 5TXEXt3WeEb/kWrEilsRmQhu89xRx9tDfcBAVTqJWo3LvxbhXqVWNT+/R6lVBFB3eM
 IslZeHqTd6/+Q==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4QX0CV6JFHz9rxD;
 Thu,  1 Jun 2023 10:48:22 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: Pan Xie <xiepan@skyguard.com.cn>
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: <73ace84b-5258-0679-1b9c-deef021d7b79@skyguard.com.cn>
References: <7a012430-6084-e693-1a86-f14d0512bebc@skyguard.com.cn>
 <87cz2goqn2.fsf@localhost>
 <9105a5ca-764f-126f-a01e-2cb92c2035dd@skyguard.com.cn>
 <87pm6fbnlo.fsf@localhost>
 <abc860e7-f463-9058-59fd-da136ac06c7a@skyguard.com.cn>
 <87ilc7bmw2.fsf@localhost>
 <73ace84b-5258-0679-1b9c-deef021d7b79@skyguard.com.cn>
Date: Thu, 01 Jun 2023 08:52:52 +0000
Message-ID: <87cz2fbm3f.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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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-Seal: i=1; s=key1; d=yhetil.org; t=1685609323; a=rsa-sha256; cv=none;
	b=mrAs73IVhfPTxz6FVMsrr0S6yriP1cxWLdDZ5XlOT338gZ+Xft7qJRi5kcX3EzoD5Ez8Zm
	BTGWuFSe/rFtCnmU7U8Ng8Bnn/7iOwIKNSnrememEsiLoA8B4l6vmM7295kXVtCrMjcAM+
	kM23p8aN0vbgy/GRnSuGuch4JUj4ShKc5KeVxUcv9lO//h7hGqWLfkSKFe+P6u+E8+Siit
	jlN8dqvCBePK/uyr1WECYbZOvyt6Oruz1cGWeEMkfhbE3G4MIvXxuGogeUHqtMrm9NMP6B
	kxk9kGMV4vYKZRTiTrw+jvSg8gDW5SoV7VZnEDR/ig5xm33RfK3nEtt9DTgvPw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=ONFWzIpG;
	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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1685609323;
	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=GaZpUko/1LQKBJw8lw8hfhr0Dlvro/qydpgCy1zSn7g=;
	b=i0MQOarDStAuaBgy7YILaDqt6HcE3E8nW+4/VAW/q/p/hA4efV/mp+RfBC++2B9P6dk+Mg
	Uh6F6k2geni1Em6llGe6L26c3UxvFYudBDj8LYXZI9lNoL+qZu8gBAa4joaCFU6h9Kx2FV
	Fwo0ISLF3n8aqk51x327skxu4aS52yMHsrRrdLLPoY6CbSchUyMiYhD7RLZWqzN0xvskqk
	hT/z+YafFUtzaYUhCjUwqAuU8y9A+WTyLSQ6+anvU3yLeHvMLEibhRXBjjyDFI4MVrliI6
	QVGcv/JQsHZmjI7b4WjD0m4MlUaHQ+G/zqoPfH3FnA3+bt/sR+2PYu3IzbvsYw==
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=ONFWzIpG;
	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-Scanner: scn0.migadu.com
X-Migadu-Spam-Score: -11.12
X-Spam-Score: -11.12
X-Migadu-Queue-Id: 6068FF9A9
X-TUID: lo1XSTm41pW5

Pan Xie <xiepan@skyguard.com.cn> writes:

> Oh, that path will be horrible! Variable substitution is really 
> important since it is an abstraction to make the same org file works on 
> different hosts with different path hierarchies. I believe there are 
> lots of users already rely on it, even without being documented. The 
> reasonable thinking would be supporting more substitutions, rather than 
> remove any.

Do not worry. https://bzg.fr/en/the-software-maintainers-pledge/:

    I won't break your user experience.
    I won't remove features.
    ...
    
I just wanted to point out that a discussion may be needed wrt export.
Maybe some other export backends also support env variables in file
paths? We should be a bit more careful if we want to support the
substitution everywhere, not just when opening file links from Emacs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>