[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
- [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories, (continued)
- [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories, Richard Hansen, 2015/09/19
- Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories, Kyle Meyer, 2015/09/19
- Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories, Richard Hansen, 2015/09/19
- Re: [O] [PATCH v2] fix SETUPFILE pathname expansion with subdirectories, Kyle Meyer, 2015/09/20
- [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories, Richard Hansen, 2015/09/20
- Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories, Richard Hansen, 2015/09/22
- Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories, Nicolas Goaziou, 2015/09/24
- Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories, Richard Hansen, 2015/09/24
- [O] [PATCH 1/2] test INCLUDE pathname expansion with subdirectories, Richard Hansen, 2015/09/24
- [O] [PATCH 2/2] fix SETUPFILE pathname expansion from within an INCLUDE, Richard Hansen, 2015/09/24
- Re: [O] [PATCH 2/2] fix SETUPFILE pathname expansion from within an INCLUDE,
Nicolas Goaziou <=
- Re: [O] [PATCH v3] fix SETUPFILE pathname expansion with subdirectories, Nicolas Goaziou, 2015/09/25