Hello,

Richard Hansen <rhan...@bbn.com> 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