From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: org-publish skips the file name in inter-page links Date: Thu, 19 Aug 2010 00:44:06 +0200 Message-ID: <87pqxfils9.wl%n142857@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=35912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlrM5-0001ux-Lb for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 18:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlrM0-0008Vc-Lb for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 18:43:33 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:55807) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlrM0-0008VW-D3 for emacs-orgmode@gnu.org; Wed, 18 Aug 2010 18:43:28 -0400 Received: by wwa36 with SMTP id 36so412179wwa.30 for ; Wed, 18 Aug 2010 15:43:27 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode Mailinglist Hi, here is a bug related to this syntax: To reproduce this you need latest Emacs (e.g. from Bazaar), latest org-mo= de, 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]]=E2=80=A6 #+END_QUOTE 3) ~/org-linktest/linktest.el: #+BEGIN_QUOTE (add-to-list 'load-path "/w/org-mode/lisp") ; or wherever you have latest o= rg-mode (require 'org) (require 'org-publish) (setq org-publish-project-alist nil) (add-to-list 'org-publish-project-alist=20 `("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=E2=80=A6

It should be:

Go to first section=E2=80=A6

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