[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: export does not ignore #+INCLUDE if archived or tagged :noe
Re: [O] Bug: export does not ignore #+INCLUDE if archived or tagged :noexport: Package: Org mode version 9.0.5 (9.0.5-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170210/)
Sat, 22 Apr 2017 09:34:20 +0200
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
Rasmus <address@hidden> writes:
> Stefan Kredler <address@hidden> writes:
>> when archiving sections or exclude them from export I would expect
>> them being exempt from being evaluated during export.
>> The section archived or marked as ~:no export:~ is still evaluated and there
>> is an error
>> if the reference in the include file is no longer available. I get the error
>> ~"org-export-expand-include-keyword: Cannot include file ~/filename.org"~
> IMO this is a feature. I have used this before, for instance when
> including tables used in source blocks at export time.
I agree an included file could introduce Babel contents which would then
be processed, even though the tree is not exported.
However, COMMENT keyword prevents Babel evaluation, so we could avoid
expanding include keywords in this particular case.