[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Include lines in setupfile are not evaluated: bug or feature?
From: |
Jarmo Hurri |
Subject: |
Re: Include lines in setupfile are not evaluated: bug or feature? |
Date: |
Sun, 08 Dec 2019 08:49:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello Nicolas!
Nicolas Goaziou <address@hidden> writes:
> SETUPFILE and INCLUDE are orthogonal. There is no point in mixing
> them.
Ok. As a programmer I was hoping to mix them, because it would be
logical to have _one_ header file that defines all the common things for
a set of related files.
But perhaps I can get away with using SETUPFILEs only. I will see.
> Jarmo Hurri <address@hidden> writes:
>> Documentation of #setupfile says that
>>
>> "Org parses the contents of this document as if it was included in the
>> buffer."
>>
>> https://orgmode.org/manual/In_002dbuffer-settings.html
>>
>> But that does not seem to be the case.
>
> SETUPFILE keyword recursively loads configuration from other files,
> without inserting anything. INCLUDE keyword recursively inserts
> contents from other files in the current document, but there is no
> guarantee that configuration from these files will be inherited.
Do I understand correctly: the description in the documentation is not
correct in the sense that not all contents from SETUPFILE is evaluated
as if it were included in the buffer?
I am just trying to think about how this limitation, if it exists,
should be expressed in documentation. Shall I give it a try?
Thanks for the clarifying response!
Jarmo