emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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  8:16 Stefan Kredler
  2017-04-21 13:00 ` Rasmus
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kredler @ 2017-04-21  8:16 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 782 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2068 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 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  8:16 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/) Stefan Kredler
@ 2017-04-21 13:00 ` Rasmus
  2017-04-22  7:34   ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Rasmus @ 2017-04-21 13:00 UTC (permalink / raw)
  To: emacs-orgmode

Stefan Kredler <eska1969@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 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 13:00 ` Rasmus
@ 2017-04-22  7:34   ` Nicolas Goaziou
  2017-04-23 17:32     ` Rasmus
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2017-04-22  7:34 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

> Stefan Kredler <eska1969@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 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  7:34   ` Nicolas Goaziou
@ 2017-04-23 17:32     ` Rasmus
  2017-04-23 17:50       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Rasmus @ 2017-04-23 17:32 UTC (permalink / raw)
  To: mail; +Cc: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> 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!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 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 17:32     ` Rasmus
@ 2017-04-23 17:50       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2017-04-23 17:50 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

Hello,

Rasmus <rasmus@gmx.us> writes:

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

Done in master.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-23 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-21  8:16 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/) Stefan Kredler
2017-04-21 13:00 ` Rasmus
2017-04-22  7:34   ` Nicolas Goaziou
2017-04-23 17:32     ` Rasmus
2017-04-23 17:50       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).