From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [BUG] [HTML] Export to html calls publish function Date: Sat, 23 Feb 2013 16:29:16 +0100 Message-ID: <87bobbhwvn.fsf@gmail.com> References: <20130223144500.GC754@smoon> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9H2f-0005Ky-3N for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 10:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9H2Z-0003wE-2d for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 10:29:36 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:48371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9H2Y-0003wA-SK for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 10:29:30 -0500 Received: by mail-wi0-f175.google.com with SMTP id l13so1972712wie.2 for ; Sat, 23 Feb 2013 07:29:30 -0800 (PST) In-Reply-To: <20130223144500.GC754@smoon> (Vladimir Lomov's message of "Sat, 23 Feb 2013 23:45:01 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Vladimir Lomov Cc: General discussions about Org-mode Hello, Vladimir Lomov writes: > Hello, I faced a problem and I think this is a bug in new exporter, html, > introduced in commit > 93a70ac59805bb270d15e951a14be63b9eb1d553 > ox-publish: Implement tools to resolve external fuzzy links > > Small test files > > #+BEGIN_SRC org :tangle test1.org > ,#+TITLE: This is test1 file > ,#+AUTHOR: Vladimir Lomov > > ,* Purpose of this document > > The purpose of this document is to show or not to show a problem with > exporting Org document into html. > #+END_SRC > #+BEGIN_SRC org :tangle test2.org > ,#+TITLE: Test document number 2 > ,#+AUTHOR: Vladimir Lomov > > ,* What I expect from this document > > I expect that when exported to html this file will have correct URL, > http://www.orgmode.org, as well as link to external document, like > [[file:test1.org::*Purpose%20of%20this%20document][Purpose of this document]]. > #+END_SRC > #+BEGIN_SRC emacs-lisp :tangle debug.el > (setq load-path (cons "/usr/share/emacs/site-lisp/org" load-path)) > (setq debug-on-error t) > (require 'org) > (require 'ox-html) > #+END_SRC It should be fixed. Note that export will not be able to resolve the search options part when you're not publishing or files do not belong to the same project. Prefer id property in this case. Thank you for reporting the problem. Regards, -- Nicolas Goaziou