Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Daniel Clemente <n142857 <at> gmail.com>
Subject: org-publish skips the file name in inter-page links
Newsgroups: gmane.emacs.orgmode
Date: Wednesday 18th August 2010 22:44:06 UTC (over 6 years ago)
Hi, here is a bug related to this syntax: 

  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:

Go to first section

It should be:

Go to first section

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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. [email protected] http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
CD: 3ms