From mboxrd@z Thu Jan 1 00:00:00 1970 From: Farseer He Subject: 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: Thu, 20 Sep 2018 16:57:18 +0800 Message-ID: <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]:59069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2unP-0004X4-F9 for emacs-orgmode@gnu.org; Thu, 20 Sep 2018 04:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2unO-0004mm-LT for emacs-orgmode@gnu.org; Thu, 20 Sep 2018 04:58:47 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:46523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2unO-0004mT-FU for emacs-orgmode@gnu.org; Thu, 20 Sep 2018 04:58:46 -0400 Received: by mail-pf1-x434.google.com with SMTP id u24-v6so4043131pfn.13 for ; Thu, 20 Sep 2018 01:58:46 -0700 (PDT) Received: from farseer-workstation ([2001:da8:d800:642:4eb6:850f:253f:3bfc]) by smtp.gmail.com with ESMTPSA id d132-v6sm35119342pgc.93.2018.09.20.01.58.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Sep 2018 01:58:43 -0700 (PDT) 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: emacs-orgmode@gnu.org 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/)