emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH 2/2] fix SETUPFILE pathname expansion from within an INCL


From: Nicolas Goaziou
Subject: Re: [O] [PATCH 2/2] fix SETUPFILE pathname expansion from within an INCLUDE
Date: Fri, 25 Sep 2015 13:58:08 +0200

Hello,

Richard Hansen <address@hidden> writes:

> * lisp/ox.el (defun org-export-expand-include-keyword):  cd instead of
> passing DIR to expand-file-name so that if the INCLUDE file has a
> SETUPFILE line with a relative pathname the full pathname to the
> SETUPFILE will be expanded properly.

SETUPFILE within INCLUDE doesn't do what you think.

Org first includes contents from all INCLUDE keyword, then reads read
SETUPFILE keywords.

>
> Assume the following files:
>
>   /home/foo/a.org:
>     #+INCLUDE: subdir/b.org
>
>   /home/foo/subdir/b.org:
>     #+SETUPFILE: c.org
>
>   /home/foo/subdir/c.org:
>     stuff

In your example, a.org becomes

  #+SETUPFILE: c.org

So, it is meant to look after /home/foo/c.org.
 

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]