From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: HTML-export: arbitrary target directories when using setup files Date: Sat, 18 Oct 2008 20:44:53 +0200 Message-ID: <48FA2EA5.2040400@gmx.de> Reply-To: sebastian_rose@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrGn4-0000tU-3w for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 14:44:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrGn2-0000tC-7O for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 14:44:41 -0400 Received: from [199.232.76.173] (port=53069 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrGn2-0000t9-2d for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 14:44:40 -0400 Received: from mail.gmx.net ([213.165.64.20]:33619) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KrGn0-0006DU-R3 for emacs-orgmode@gnu.org; Sat, 18 Oct 2008 14:44:39 -0400 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: "[emacs-orgmode]" Hi, the HTML-export (recursive) behaves strange. Files go to arbitrary directories (still under the publishing directory). It seems, the file names and path elements get mixed up when using the #+SETUPFILE option. This bug was introduced some weeks ago (I believe), but when exporting repeatedly, the files in the top-level directory looked OK again. So I didn't investigate any further. The first thing I noticed was, that /Xy/index.org was published to /index.org (i.e. the index.org in the last (alphabetically) subdirectory. It seems, that the path information gets lost somewhere if we use #+SETUPFILE. Also, the /index.html is made from an arbitrary index.org from a sibdirectory (the last one in alphabetic order). If I do $ touch ~/org/index.org the ~/public_html/index.html is correct again (since it's the only file to be published). Note, that the structure of the index file is correct. This is the tree in my ~/org/ (perfectly represented in the index file): . |-- Brain | |-- Brainstorming.org | `-- ist_Kreativitaet_erlernbar.org |-- Dateiformate.org |-- Datenbanken | |-- man-createuser.org | |-- mysql.org | |-- nested-sets.org | `-- postgreSQL.org |-- Emacs | |-- gnus.org | |-- index.org | |-- org-info.org | |-- org-mode.org | |-- org-plot.org | `-- snippets.org |-- Java | |-- Hibernate.org | |-- maven.org | |-- tomcat.org | `-- webapps.org |-- JavaScript | |-- index.org | |-- jQuery.org | `-- mootools.org |-- LaTeX | `-- index.org etc. And this is the export result in ~/public_html/ (wrong placed files marked '#'): . |-- Brain | |-- Dateiformate.html # (should be in top-level dir.) | `-- ist_Kreativitaet_erlernbar.html |-- Datenbanken | |-- gnus.html # | |-- mysql.html | |-- nested-sets.html | `-- postgreSQL.html |-- Emacs | |-- Hibernate.html # | |-- index.html | |-- org-info.html | |-- org-mode.html | |-- org-plot.html | `-- snippets.html |-- Fragensammlung.html # (should be in a subdirectory) |-- Java | |-- index.html | |-- maven.html | |-- tomcat.html | `-- webapps.html |-- JavaScript | |-- index.html | |-- jQuery.html | `-- mootools.html |-- LaTeX | `-- apt.html # (should be /Linux/Debian/) |-- Linux | |-- Agile_Softwareentwicklung.html # (should be in /Organisation/) | `-- Debian | `-- index.html etc. Looks like the path get's lost somewhere in org-exp.el when using #+SETUPFILE.