From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 89gUBcjid2SMLAAASxT56A (envelope-from ) for ; Thu, 01 Jun 2023 02:14:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kCVGBMjid2SRPQEAauVa8A (envelope-from ) for ; Thu, 01 Jun 2023 02:14:00 +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 A810F17C37 for ; Thu, 1 Jun 2023 02:13:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q4Vw0-00045s-HO; Wed, 31 May 2023 20:12:56 -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 1q4Vvx-00045c-PI for emacs-orgmode@gnu.org; Wed, 31 May 2023 20:12:53 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q4Vvv-0000d5-Dd for emacs-orgmode@gnu.org; Wed, 31 May 2023 20:12:53 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f14e14dc00so4880e87.1 for ; Wed, 31 May 2023 17:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685578369; x=1688170369; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tFW1kLkplSlNuDUYTBLjwLzY6bgHwG/UzWL5tMwWhUg=; b=M5UwIia+0BLtiIQz9qxs6pWZHrV9LkwRYre0tLtOyr8L1GYEmhz54aUdwJHBqmDSRJ uWenXaeBSrOTac+x1OWWOCKQmSe1AjKJAR0v9NesiBZ3zVJ4WlKsS47pWqavw3DIKoAx V0hDeSq632GKXSg8caN6aznqvHenqG5+YlKNDJ8cTv7IFvkD3+3kajbqpGPSiPPOj2Od qPVKfdM0BZWQr/5py7w7yy73WR71ECsVNayWgPpSPBdhXfAu4Zu5UoL3wcGomGmN7AHy cLvB+EyNtQsSZCcmc/CK22q76Gep56jgm3o+77XtW0xqfbbaksQMfBaz1TNRhQFDicL/ cGyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685578369; x=1688170369; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tFW1kLkplSlNuDUYTBLjwLzY6bgHwG/UzWL5tMwWhUg=; b=Ae7gnAPPjmGGasr7gGonlhQ3dtOe2++VeDE8PX89WQ4NfqH7ZB4CFR4pFhD7Q5CuJF ge9S8vNz6dGLh9xKD9j+c79oj8mrQ+ZUgjoaRQz8pgruSfebtADNMh2x+my8ZqEaSIYr 9B3d9Pnvh/mPs0jLhXrFQK2fPCo2vobGtpLqmdtAd5Rcfr1/Udzrfg+CjJu6H8TY9Oer 3z7F3ZukuZufMAj3+pbb0x+fdYycGFTCgtzbBfojsShRCUu7JCNCtp9VeKSIOIWtW8CE 6pt63wIJ6W6gBuYpiLjPRXpPmzGM5yWizRu/ezCZ+PFPwYIHt07ERrean/oCEjDzJLGn 1VVA== X-Gm-Message-State: AC+VfDxn1QjVVH6fjAztggEiTdttWRW/kN71M2PUVge70rQ5vrGZNSVt oVbD/v1cdE0fcGPgDD3E8ajqfK0uxVa6/0KlhJE= X-Google-Smtp-Source: ACHHUZ5fLVNrm8M4ubaaB5N7GtCmXCnpUs1iXkE7Lk9J6wyvmChqpj+0nKqwIwQa1LoDQ2fhEF5fayA+FSR4yE9pQLY= X-Received: by 2002:a05:6512:247:b0:4e9:c792:c950 with SMTP id b7-20020a056512024700b004e9c792c950mr2553420lfo.1.1685578369176; Wed, 31 May 2023 17:12:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aa6:c432:0:b0:265:2782:6da8 with HTTP; Wed, 31 May 2023 17:12:48 -0700 (PDT) In-Reply-To: <9105a5ca-764f-126f-a01e-2cb92c2035dd@skyguard.com.cn> References: <7a012430-6084-e693-1a86-f14d0512bebc@skyguard.com.cn> <87cz2goqn2.fsf@localhost> <9105a5ca-764f-126f-a01e-2cb92c2035dd@skyguard.com.cn> From: Samuel Wales Date: Wed, 31 May 2023 17:12:48 -0700 Message-ID: Subject: Re: [FR] Please add environment variable substitution in `org-display-inline-images' To: Pan Xie Cc: Ihor Radchenko , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=samologist@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1685578439; 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=tFW1kLkplSlNuDUYTBLjwLzY6bgHwG/UzWL5tMwWhUg=; b=ljObz83zEIbxQwWPTFWXulZccFgnVCsObo9oxJ8ixUtdSp23vKJEgLtFFFoIyF+mkfqnYx Rx/QOWojTOrY9hGJKObAOm/5aFN2e/NSIAX+pdTnk28Ic90SbhXxOrBLAiASsLkd0Tw/Vs 6w769xnxbt6NRV2sV6AYVZMK9AAVuWE+wFlQXrh30qDrAHZwm+3StU1sihskDriti/Cmk4 mQs9LHasP3RdBZL83m6Zw1jXxnuCzqoXMnF42CJ2PWrjCHOb6RLgK8lsV8vAWp+/l1d5Ok pHRzewmi47oRTydKNFgJ1RldXI3B5tZDU0PryPL3405fsZy316S6C/laWhDFYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=M5UwIia+; dmarc=pass (policy=none) header.from=gmail.com; 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=1685578439; a=rsa-sha256; cv=none; b=uy2UrHE25arQusQt2+f3v0yYWhc5kIrP9iTtg1yQecwLKvqvbvfMvRwyK4RgQRnpKupKkG /C4+jCSN/Z+EdETmuYgFlxLcqWzF9iCY32nEL4vbLJPVWC6y/6Dhk9nqIWG099QEHwrsQK +FIPWto3RNxKozkFjRSvFnY93/amQW5a1ZmwobJ1uaOuv2GZG3OPewK8SgvfExHlWECeZE OnSxRCLcV+D1vnNxWl74dtu62gkJayxz8zK3K+Oej8qnaSRUGEECdTsVctL+r+2FMd5C9c PtFHIgKKwES8/J0KlJv6bAG+c2JV8h59utHgUM1Xtsyc2/9Oo/Y8By385Eaw/w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=M5UwIia+; dmarc=pass (policy=none) header.from=gmail.com; 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: A810F17C37 X-Spam-Score: -4.81 X-TUID: 2nd7Fr72Yhc8 org-lint might need changing too? On 5/31/23, Pan Xie wrote: > Fantastic!! Thanks for your help. I can remove my ugly override codes. > > BTW, Please keep in mind that the org export codes also need to > substitute the environment variables. My proposal only works for the org > file itself, When exports the org file to html, the image file path will > still include the environment variable, which is of course not correct. > > On 5/31/23 16:24, Ihor Radchenko wrote: >> Pan Xie writes: >> >>> I recently found that the environment variable substitution does not >>> apply to inline image paths. Supposing I use a path >>> =E2=80=9C/home/pxie/$Gallery/=E2=80=9D to store all my image files, =E2= =80=9C$Gallery=E2=80=9D >>> should be substituted with its corresponding value. The file link DOES >>> substitute the environment variables, but inline image paths not. So I >>> think it is a reasonable demand for the consistency. >> Agree. >> Done, on main. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D3123ca= a8e >> > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com