[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] org-publish skips the file name in inter-page links
From: |
Daniel Clemente |
Subject: |
[Orgmode] org-publish skips the file name in inter-page links |
Date: |
Thu, 19 Aug 2010 00:44:06 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/24.0.50 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] org-publish skips the file name in inter-page links,
Daniel Clemente <=