From: Daniel Clemente <n142857@gmail.com>
To: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: org-publish skips the file name in inter-page links
Date: Thu, 19 Aug 2010 00:44:06 +0200 [thread overview]
Message-ID: <87pqxfils9.wl%n142857@gmail.com> (raw)
Hi, here is a bug related to this syntax: <a href="#id:jgg8k741eue0">
To reproduce this you need latest Emacs (e.g. from Bazaar), latest org-mode, and 3 files in ~/org-linktest/ (remove the BEGIN_QUOTE etc):
1) ~/org-linktest/has_ids.org:
#+BEGIN_QUOTE
*** TODO first section
:PROPERTIES:
:ID: jgg8k741eue0
:END:
Something good.
#+END_QUOTE
2) ~/org-linktest/linker.org:
#+BEGIN_QUOTE
* Hi
Go to [[id:jgg8k741eue0][first section]]…
#+END_QUOTE
3) ~/org-linktest/linktest.el:
#+BEGIN_QUOTE
(add-to-list 'load-path "/w/org-mode/lisp") ; or wherever you have latest org-mode
(require 'org)
(require 'org-publish)
(setq org-publish-project-alist nil)
(add-to-list 'org-publish-project-alist
`("linktest"
:base-directory "~/org-linktest/"
:publishing-directory "~/org-linktest/"
:auto-postamble nil
)
)
(setq org-publish-use-timestamps-flag nil)
; (org-publish-file "~/org-linktest/linker.org")
(org-publish-project "linktest" t)
#+END_QUOTE
To reproduce:
1) Open: emacs -Q
2) Open linktest.el
3) Eval it (eval-buffer). linker.html and has_ids.html are created in ~/org-linktest/
Result:
linker.html has this code for the link, which is wrong:
<p>
Go to <a href="#id:jgg8k741eue0">first section</a>…
</p></div>
It should be:
<p>
Go to <a href="has_ids.html#id:jgg8k741eue0">first section</a>…
</p></div>
Notes:
- It works correctly when normal export (C-c C-e H) is used.
- I tried to bisect the history tree from 5.23 to now and I saw the bug in all versions. Strange, since I thought this didn't happen before. Maybe it's in Emacs? Or it isn't a bug? But it feels like a bug.
- It also happens with new-style IDs, which are longer
Thanks,
Daniel
reply other threads:[~2010-08-18 22:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87pqxfils9.wl%n142857@gmail.com \
--to=n142857@gmail.com \
--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).