From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: org-publish fails to export the #anchor in other_org_file.html#anchor Date: Wed, 13 Oct 2010 00:29:25 +0200 Message-ID: <87d3rff3ju.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=54304 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5nLc-0002jo-Li for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 18:29:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5nLb-000593-L5 for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 18:29:28 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:45321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5nLb-00058u-Gi for emacs-orgmode@gnu.org; Tue, 12 Oct 2010 18:29:27 -0400 Received: by wwd20 with SMTP id 20so995613wwd.0 for ; Tue, 12 Oct 2010 15:29:26 -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. Before commit bbac53d7fe1cab14bc70e152092cf7a538a6a810, org-publish made th= is change to my HTML, which was wrong: -Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode=E2=80=A6 +Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode=E2=80=A6 After that commit (and in exactly the same setup), it makes this change, wh= ich is also wrong: -Precisamente una idea loca que tengo es integrar la World Wide Web en org-mode=E2=80=A6 +Precisamente una idea loca que tengo es integrar la= World Wide Web en org-mode=E2=80=A6 I think org-html-make-link doesn't export anchors (=E2=80=9Efragments=E2=80= =9C) in links between org files. The following patch corrects this for me; please review. diff --git a/lisp/org-html.el b/lisp/org-html.el index 3fd7b72..3e4a789 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -746,7 +746,8 @@ MAY-INLINE-P allows inlining it as an image." ((or (not type) (string=3D type "http") - (string=3D type "https")) + (string=3D type "https") + (string=3D type "file")) (if fragment (setq thefile (concat thefile "#" fragment)))) =20