From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: ox-publish(html) needs org-link-unescape while treating external search link [9.0.9 (9.0.9-68-g492420-elpaplus @ /home/farseer/.emacs.d/elpa/org-plus-contrib-20170807/)] Date: Sat, 22 Sep 2018 23:33:55 +0200 Message-ID: <878t3tdxoc.fsf@nicolasgoaziou.fr> References: <87r2hoeec1.fsf@farseer-workstation.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g3sY7-00018j-FL for emacs-orgmode@gnu.org; Sat, 22 Sep 2018 20:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g3s24-0008Ck-Oo for emacs-orgmode@gnu.org; Sat, 22 Sep 2018 20:13:57 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:51372) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g3s24-00087F-HI for emacs-orgmode@gnu.org; Sat, 22 Sep 2018 20:13:52 -0400 Received: from relay1-d.mail.gandi.net (unknown [217.70.183.193]) by mslow2.mail.gandi.net (Postfix) with ESMTP id CD6463A2907 for ; Sat, 22 Sep 2018 23:34:24 +0200 (CEST) In-Reply-To: <87r2hoeec1.fsf@farseer-workstation.i-did-not-set--mail-host-address--so-tickle-me> (Farseer He's message of "Thu, 20 Sep 2018 16:57:18 +0800") 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: Farseer He Cc: emacs-orgmode@gnu.org Hello, Farseer He writes: > Problem: ox-publish (to html for example) generates incoherent external > links for search links like [[file:foo%20bar.org::*h1][link example]]. > Suppose the h1 element in "foo bar.html" has ID "#orgffffff", the > generated external html anchor link may refer to ID "#org000000". > > Probable reason: Different IDs get generated to org-publish-cache, 1 for > h1 in "foo bar.org", the other (generated by org-resolve-external-link) > for h1 in "foo%20bar.org". I suppose that "org-link-unescape" should be > called before written to cache. > > Emacs : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2018-07-05 > Package: Org mode version 9.0.9 (9.0.9-68-g492420-elpaplus @ > /home/farseer/.emacs.d/elpa/org-plus-contrib-20170807/) I think this was fixed in a more recent version. Could you verify it? Thank you. Regards, -- Nicolas Goaziou