From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Inconsistent behaviour when #+setupfile is used recursively Date: Mon, 25 Jul 2011 15:46:53 +0200 Message-ID: <87zkk2xyk2.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlLe8-0000Tq-9w for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlLe0-0002sK-NG for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:56:36 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:46312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlLe0-0002rt-GP for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 09:56:28 -0400 Received: by wyg36 with SMTP id 36so3411286wyg.0 for ; Mon, 25 Jul 2011 06:56:27 -0700 (PDT) In-Reply-To: (Stefan Vollmar's message of "Wed, 13 Jul 2011 09:49:09 +0200") 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: Stefan Vollmar Cc: emacs-orgmode Mode Hi Stefan, Stefan Vollmar writes: > we use Org-mode for software documentation and have come across the > following behaviour with version 7.6 (release_7.6.71.g22fa9): > > our documentation is located in the directory doc/usage, > e.g. doc/usage/index.org or doc/usage/tutorial.org, whereas Org-Mode's > setupfiles are stored in doc/common/org, > e.g. doc/common/org/setup-toc-large or doc/common/org/setup-common. When we > include a setupfile from doc/usage/index.org using > > #+setupfile: ../common/org/setup-toc-large > > everything works fine. The path of the setupfile is relative to the path of index.org. > > However, when setup-toc-large itself includes another setupfile with > setup-common using a relative path, the path is still treated as relative > to index.org, not relative to setup-toc-large. Therefore, when using the > line > > #+setupfile: setup-common > > within setup-toc-large, Org-Mode fails to find setup-common. This is fixed in latest git. Thanks for signaling this bug. Best, -- Bastien