From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Help resolving CUSTOM_ID based links that point to outside current subtree scope Date: Tue, 01 Aug 2017 11:08:00 +0000 Message-ID: References: <87tw1rsnhm.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113e8452baac240555af2943" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcV25-0004IT-Sh for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 07:08:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcV24-00065Y-Rw for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 07:08:13 -0400 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:35349) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcV24-000652-KQ for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 07:08:12 -0400 Received: by mail-lf0-x235.google.com with SMTP id t128so5439953lff.2 for ; Tue, 01 Aug 2017 04:08:12 -0700 (PDT) In-Reply-To: <87tw1rsnhm.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-org list --001a113e8452baac240555af2943 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 1, 2017, 4:26 AM Nicolas Goaziou wrote: > > I guess you could write a function that changes custom ID links into > external links prior to export, e.g., within > `org-export-before-parsing-hook'. > If I understand correctly, it would mean replacing "[[#link]]" with "[[./current-file.org::#link]]"? (I haven't yet verified if that #+INCLUDE-like syntax works for links too.) Also, I am working on implementing this in an exporter backend. So what would be the canonical way to do that in ox-foo.el? Thanks. > -- Kaushal Modi --001a113e8452baac240555af2943 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 1, 2017, 4:26 AM Ni= colas Goaziou <mail@nicolasgoa= ziou.fr> wrote:

I guess you could write a function that changes custom ID links into
external links prior to export, e.g., within
`org-export-before-parsing-hook'.

=

If I understand correctly, it would mean replacing &quo= t;[[#link]]" with "[[./current-file.org::#link]]"? (I haven&= #39;t yet verified if that #+INCLUDE-like syntax works for links too.)

Also, I am working on implementing this in an exporter= backend. So what would be the canonical way to do that in ox-foo.el?
=

Thanks.=C2=A0
--

Kaushal Modi

--001a113e8452baac240555af2943--