emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Farseer He <admin@farseer.cn>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87r2hoeec1.fsf@farseer-workstation.i-did-not-set--mail-host-address--so-tickle-me> (raw)

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/)

             reply	other threads:[~2018-09-20  8:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-20  8:57 Farseer He [this message]
2018-09-22 21:33 ` 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/)] Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r2hoeec1.fsf@farseer-workstation.i-did-not-set--mail-host-address--so-tickle-me \
    --to=admin@farseer.cn \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).