From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Help resolving CUSTOM_ID based links that point to outside current subtree scope Date: Tue, 01 Aug 2017 18:46:01 +0200 Message-ID: <87efsvs0c6.fsf@nicolasgoaziou.fr> References: <87tw1rsnhm.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcaJ8-00045I-0z for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 12:46:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcaJ3-0004vy-24 for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 12:46:10 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:36736) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcaJ2-0004va-RQ for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 12:46:04 -0400 In-Reply-To: (Kaushal Modi's message of "Tue, 01 Aug 2017 11:08:00 +0000") 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: Kaushal Modi Cc: emacs-org list Kaushal Modi writes: > 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? I think I would do something like this: in a parse tree filter, find every custom ID link then expand current buffer, find real destination, and replace the original ID link with an external link generated from the aforementioned destination. Regards,