From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
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 GBXlKZrzwWY6AAEA62LTzQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 18 Aug 2024 13:14:02 +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 GBXlKZrzwWY6AAEA62LTzQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 18 Aug 2024 15:14:02 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=USNqXBCX;
	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=1723986842;
	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=lf8mq/qow31SS78cXkXEvBO+jUu2nuqLny5sCs2eo/o=;
	b=JKZAS+zkNyeLjMJfQCkmtnDlw2zb1z62qqt8Zbeo4ikhUS7/pnyQuA67p2qiKcobCx92fo
	3tKBANMASFkFN1Sa5dCSe/nqSmaGZU5+k6GlzWVhWO6UCHnX/5BDYuOclf2hmqy2z1kar5
	EtqDArRTPK3yUMr56qf40yVwmAXkb9pduPtmKHCNNaoNeI4VW7fQKfWbZqMGbWL22fygd9
	MrBcsuN8F0ZMqKiylWp8a0vK3mFMeUBG33vPdgZhhpxdz3dNABnAZTq03nV3R3tQj+qk4p
	5kV1nv+2U3R7m9qIDRIjmgennVrxhaqwctjaTrpOhga+ZqNDwK/kQ2WQuFTmUA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=USNqXBCX;
	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=1723986842; a=rsa-sha256; cv=none;
	b=DR9ky+qsfdjGz6AnanBFe2ulNCV1P05D3T+4va+gm9jLP+slrfqX2WkUQKaS7zdrXJg5i5
	iXzXdOHoBynOoC9Tz+49tdrctxEQajizJBwG46ATTbPz8nPUNTkGAUr/o2AnhMOnDW5whS
	vOgmYpBOXUBxU9cwiAkTG5Tk2ZUmo/O0fwAVoXq8ktXMDshWZLjxRlko5kULC4quwanzDk
	DeIiEU0SexGEuY71LVWU+rYxIFPjXxMIjV/Wq+iBQOry+bzJCveiAjHzRfReERTuoYfKrX
	sBWW5jZAtBajjNldejdJvCBYzCopYOF7ocTdwmKeBMF5q4U3L3jiI1lKAnCCOA==
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 477D97EF72
	for <larch@yhetil.org>; Sun, 18 Aug 2024 15:14:02 +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 1sffiT-0007iV-2q; Sun, 18 Aug 2024 09:13:05 -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 1sffiP-0007iE-Lz
 for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:13:02 -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 1sffiM-0005Qj-K6
 for emacs-orgmode@gnu.org; Sun, 18 Aug 2024 09:13:01 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 7A662240029
 for <emacs-orgmode@gnu.org>; Sun, 18 Aug 2024 15:12:55 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1723986775; bh=K0Td9xpNhT2/g/xerp2h29lHSy0EGLEZ2hza/OnLisM=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=USNqXBCXGNzy0Bh1anudz7lxrLy1lqbctFkn0tdpbE95VAaIJROLmQA29NJiHXt+z
 QRi3RaEAjEpA9gmGjWBEHcHEzIbaG5o4/IPQxVdKOMTozmTpoZ3utiBjjWMBjta2U5
 rcUddWpHVs/ymmi9jICEtyVy1KNjm05s2tehvU5LtR8Ur3+IXFiKBs6jaqieHJ4YCd
 mt0ve+67dJ6zgbHBRYEGz4WqFdNopCPpn1R5dCQ7dHexCuRD48n2Nui+0dxjQ86mWf
 E8SgPf/q6YXXQ5bXYubr8W22+AKusY1uzzBcOGyh1Bt1OnVw1rBVClAgRqKhopkIR/
 SIEEOUroD5e8g==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4Wmx3p64jMz9rxD;
 Sun, 18 Aug 2024 15:12:54 +0200 (CEST)
From: Ihor Radchenko <yantar92@posteo.net>
To: rswgnu@gmail.com
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: How to fully control parsing of Org mode links during export
In-Reply-To: <CA+OMD9hcVWuzEUAfRTVMcxhLf40j1DPkmqt6H1nXAkuOtm5RDg@mail.gmail.com>
References: <CA+OMD9hhWTcHiEC9gwNx-gJdUv_JxGJ3dfQepZ=N2jHkpus5TA@mail.gmail.com>
 <87ikwxmszy.fsf@localhost>
 <CA+OMD9hcVWuzEUAfRTVMcxhLf40j1DPkmqt6H1nXAkuOtm5RDg@mail.gmail.com>
Date: Sun, 18 Aug 2024 13:13:59 +0000
Message-ID: <87le0ux9bc.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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
 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
X-Spam-Score: -9.69
X-Migadu-Queue-Id: 477D97EF72
X-Migadu-Scanner: mx10.migadu.com
X-Migadu-Spam-Score: -9.69
X-TUID: mXP6PZ2sLxZZ

Robert Weiner <rsw@gnu.org> writes:

> Thank you for the pointers on this, Ihor.  That led me down a much better
> path that worked.  In the end, I just had the export function for my
> specific link type and had to add a before advice on
> org-element--generate-copy-script since it lacks a hook at its end.  I
> would suggest adding one as this seems to be the place if you want to
> change the markup in the copied buffer before Org formats it for export.
> Is there any other existing hook that runs before formatting in this copied
> buffer?

See https://orgmode.org/manual/Advanced-Export-Configuration.html#Summary-of-the-export-process-1

-- 
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>