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/)

2017-04-23 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> It's fine to exclude #+include in COMMENT headlines IMO.

Done in master.

Regards,

-- 
Nicolas Goaziou



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/)

2017-04-23 Thread Rasmus
Nicolas Goaziou  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 message
>>> ~"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.
>
> WDYT?

It's fine to exclude #+include in COMMENT headlines IMO.

Cheers,
Rasmus

-- 
Spil noget med Slayer!



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/)

2017-04-22 Thread Nicolas Goaziou
Hello,

Rasmus  writes:

> Stefan Kredler  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 
>> message
>> ~"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.

WDYT?

Regards,

-- 
Nicolas Goaziou



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/)

2017-04-21 Thread Rasmus
Stefan Kredler  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 
> message
> ~"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.

Rasmus

-- 
Dobbelt-A




[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/)

2017-04-21 Thread Stefan Kredler
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 
message
~"org-export-expand-include-keyword: Cannot include file ~/filename.org"~

-
MY PROJECTS -*- mode: org; -*-

* Heading
** sub
** Table to be ignored :noexport:
#+INCLUDE: filename.org::Table_to_ignore

* Archive :ARCHIVE:noexport:
** Table to be ignored :ARCHIVE:
#+INCLUDE: filename.org::Table_to_ignore
-

Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32)
of 2015-04-11 on LEG570
Package: Org mode version 9.0.5 (9.0.5-elpaplus @ 
~/.emacs.d/elpa/org-plus-contrib-20170210/)
--

Stefan