Whoops, I'm so sorry - I accidentally used org-make-link-string instead of org-link-make-string. Tiny patch fixing it attached.
Sacha Chua - sa...@sachachua.com - Blog: sachachua.com - Mobile: +1 416 823 2669 On Fri, May 31, 2019 at 12:30 PM Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Sacha Chua <sa...@sachachua.com> writes: > > > - catch the signal raised by org-export-resolve-fuzzy-link and then > check for the > > special case of "local" > > - always handle :target "local" as a local TOC > > - or just leave the behaviour as it is. What would you recommend? > > The latter is fine. > > I applied you patch. Thank you. > > Regards, > > -- > Nicolas Goaziou >
From 265886aedf202cce3cc7ab4f88bab318dd69ca86 Mon Sep 17 00:00:00 2001 From: Sacha Chua <sa...@sachachua.com> Date: Wed, 5 Jun 2019 15:17:57 -0400 Subject: [PATCH] org-export-resolve-link: Use org-link-make-string * lisp/ox.el (org-export-resolve-link): Use org-link-make-string instead of org-make-link-string. --- lisp/ox.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index e989b37c6..05c8daebc 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -4478,7 +4478,7 @@ Return value can be an object or an element: (when (stringp link) (setq link (with-temp-buffer (save-excursion - (insert (org-make-link-string link))) + (insert (org-link-make-string link))) (org-element-link-parser)))) (pcase (org-element-property :type link) ((or "custom-id" "id") (org-export-resolve-id-link link info)) -- 2.17.1