From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8L9fCasUq2PcywAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 16:52:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gEJwCasUq2MPOAEA9RJhRA (envelope-from ) for ; Tue, 27 Dec 2022 16:52:11 +0100 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 D8B7E35E11 for ; Tue, 27 Dec 2022 16:52:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pACEV-0003Uj-84; Tue, 27 Dec 2022 10:51:15 -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 1pACER-0003US-VV for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 10:51:12 -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 1pACEN-0007Y8-QJ for emacs-orgmode@gnu.org; Tue, 27 Dec 2022 10:51:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 645EF240259 for ; Tue, 27 Dec 2022 16:51:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672156265; bh=giGiCCd5sRT2RPsVOteKGtmQuWiA2OmVHLtS6AWnNsI=; h=From:To:Cc:Subject:Date:From; b=BJsgPogyGdD06PbRiytjJnhLr361cf0tzVgSNISK0DLpGWQgcpqsPjNC4GBzxrACq uMS84lB23SwAeBBecvHq7YAl0izhPkbowz3XqtJUtJOdckNOGfC1SzUXRKO7+uhNmM ZSi3WfwlbdvUQBhgZZtPaDXoAUyAeIFKgRP4DUSwIZUInzvRun1AINMXz6xr0MECNA uzp6oho3whmgiWUe9aTx+asHg9PdKOIwhpvM5aLCCJ7aKDsXhTnysqRH9ImJxvgAIQ qXWQTz3SSEdtoIfhtKWabpc6HN3mgWfqVZwrDIrjRhEE/KqhlE8fNisfOlYELHMAG2 /aECZ7VfU2GkA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NhJzB39tJz9rxN; Tue, 27 Dec 2022 16:51:02 +0100 (CET) From: Ihor Radchenko To: Michael Dauer Cc: emacs-orgmode@gnu.org Subject: Re: Expand macros in links In-Reply-To: References: <87o7ro27ap.fsf@localhost> Date: Tue, 27 Dec 2022 15:50:50 +0000 Message-ID: <87lems26cl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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_H2=-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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672156330; a=rsa-sha256; cv=none; b=h9g9lUSsoWVVjJ5+Omq3cF/asiOMkKiu4BLV3r/8775oINmyMm5gwl6PGYHMKoSi/3L3Bj 8FeMflDw7lrz6FarK5u+4UcVeEkVEWf+XatBUP0VjkHP/s8Co4w02My8ySndiH2eeGiFIf u3Y21UmKLRqsQQv2HHBnfmfRK9V5m7tOjtL37/t7RbMmm6C7uXNcX7qJwaYTFjGND7VpSk H5In6NmYGydJUw0pnP8US/wPeYvFPvNa+ppgLtfCe7KfjDXAuzoRgXsvoSefn18AJgVse6 1f3wH+3E9OJ6Ogmarxjdx/o4MocO0ztfiQ9LwlGmcodCNmbRkj9fKKky7hn6wg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BJsgPogy; 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=1672156330; 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=R3brQkLiREQRIHPFuSglz1geRIOBZ69PzpQjlP5pY2Y=; b=QheTHHKQ673edLmLk2QAGDPanEiIbYqHoZARQrVzPfGZ0pFBbKjJ+9xXf1NYxLttgJzLAo CtSxLKGZuMtr9hlJ1PEtQXk8m3FjnYaSGKDEhTQhXg+h8RRmZr2l+kzeyVPo97d88z0ypA xrjPylFg94AVxXEQEck7xLBYmoZ0fHWIbUZBgtxJF3gg6Cb5s3uXAFEs692nc95twKS85+ cIMedzPwSefbSsLDtNlpdojFYkkLm18mNrcnKOp9DJl8eVtEFI4lG1/AT/ReTT7s6NMoUT M+r1rTlYCL2lyUWfjfC8ouCVL5QU6eVqgKXOpVlcGTekU/+B2Nc0yp5rQ9ZJXw== X-Spam-Score: -10.07 X-Migadu-Queue-Id: D8B7E35E11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=BJsgPogy; 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 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.07 X-TUID: pEXPKnid7P56 Michael Dauer writes: > I mean something like: > * Heading > [[http:abc{{{input-file}}}] > > When exporting it to html then the link is not replaced. This is to be expected, and I do think that Org is doing it right by not replacing macros in links. You cannot exactly control what is inside link path - if an actual website link happens to contain {{{...}}} pattern, you will have no options left how to prevent Org from replacing that pattern. If you want to generate link paths programmatically, you can instead define custom links types or link abbreviations. See https://orgmode.org/manual/Link-Abbreviations.html and https://orgmode.org/manual/Adding-Hyperlink-Types.html You can control custom link export as well. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at