From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Kredler Subject: 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/) Date: Fri, 21 Apr 2017 10:16:52 +0200 Message-ID: <4eea3f8a-cda4-4b10-996f-41e10a723fb2@Spark> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="58f9c006_327b23c6_efa" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1Tkl-0006DP-JD for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 04:17:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1Tki-0005tb-EW for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 04:17:19 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:35282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1Tki-0005tP-68 for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 04:17:16 -0400 Received: by mail-wr0-x231.google.com with SMTP id z52so8435705wrc.2 for ; Fri, 21 Apr 2017 01:17:15 -0700 (PDT) Received: from [192.168.178.103] (p5DCA8160.dip0.t-ipconnect.de. [93.202.129.96]) by smtp.gmail.com with ESMTPSA id s82sm1056664wmb.33.2017.04.21.01.17.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Apr 2017 01:17:13 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --58f9c006_327b23c6_efa Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --58f9c006_327b23c6_efa Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
when a= rchiving sections or exclude them from export I would expect
them being exempt from being evaluated during export.
The section archived or marked as =7E:no export:=7E is still evaluated an= d there is an error
if the reference in the include file is no longer available. I get the er= ror message
=7E=22org-export-expand-include-keyword: Cannot include file =7E/filename= .org=22=7E
=E2=80=A8
-----
MY PROJECTS -*- mode: org; -*-
=E2=80=A8
* Heading
** sub
** Table to be ignored&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23= 160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=231= 60;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=2316= 0;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160= ;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;= &=23160;&=23160; :noexport:
=23+INCLUDE: filename.org::Table=5Fto=5Fignore
=E2=80=A8
* Archive&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;= &=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&= =23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23= 160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=231= 60;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=2316= 0;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160= ;&=23160;&=23160;&=23160;&=23160; :ARCHIVE:noexport:
** Table to be ignored&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23= 160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=231= 60;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=2316= 0;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160= ;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;&=23160;= &=23160;&=23160; :ARCHIVE:
=23+INCLUDE: filename.org::Table=5Fto=5Fignore
-----

Emacs&=23160; : 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 =40 =7E/.emacs.d/elpa/org= -plus-contrib-20170210/)
--

Stefan
--58f9c006_327b23c6_efa-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: 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/) Date: Fri, 21 Apr 2017 15:00:24 +0200 Message-ID: <877f2d9aqf.fsf@gmx.us> References: <4eea3f8a-cda4-4b10-996f-41e10a723fb2@Spark> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1YB0-0005Ik-B0 for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 09:00:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1YAv-000326-IF for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 09:00:42 -0400 Received: from [195.159.176.226] (port=40729 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d1YAv-00031y-BR for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 09:00:37 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d1YAn-0002jK-Jg for emacs-orgmode@gnu.org; Fri, 21 Apr 2017 15:00:29 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: 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/) Date: Sat, 22 Apr 2017 09:34:20 +0200 Message-ID: <87k26cvqtf.fsf@nicolasgoaziou.fr> References: <4eea3f8a-cda4-4b10-996f-41e10a723fb2@Spark> <877f2d9aqf.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d1pYq-0001kS-1u for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 03:34:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d1pYl-0003jg-Nv for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 03:34:28 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:32781) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d1pYl-0003iV-Ho for emacs-orgmode@gnu.org; Sat, 22 Apr 2017 03:34:23 -0400 In-Reply-To: <877f2d9aqf.fsf@gmx.us> (rasmus@gmx.us's message of "Fri, 21 Apr 2017 15:00:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus Cc: emacs-orgmode@gnu.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: 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/) Date: Sun, 23 Apr 2017 19:32:58 +0200 Message-ID: <877f2bf2r9.fsf@gmx.us> References: <4eea3f8a-cda4-4b10-996f-41e10a723fb2@Spark> <877f2d9aqf.fsf@gmx.us> <87k26cvqtf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2LNi-000555-3b for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2LNf-000835-1w for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:33:06 -0400 Received: from mout.gmx.net ([212.227.15.15]:63869) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2LNe-00082e-OC for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:33:02 -0400 In-Reply-To: <87k26cvqtf.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 22 Apr 2017 09:34:20 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: mail@nicolasgoaziou.fr Cc: emacs-orgmode@gnu.org 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! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: 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/) Date: Sun, 23 Apr 2017 19:50:18 +0200 Message-ID: <87pog3qahx.fsf@nicolasgoaziou.fr> References: <4eea3f8a-cda4-4b10-996f-41e10a723fb2@Spark> <877f2d9aqf.fsf@gmx.us> <87k26cvqtf.fsf@nicolasgoaziou.fr> <877f2bf2r9.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2LeU-0008Ir-Jz for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:50:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2LeP-0005Ja-Uw for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:50:26 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54844) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2LeP-0005JQ-Oh for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 13:50:21 -0400 In-Reply-To: <877f2bf2r9.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 23 Apr 2017 19:32:58 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > It's fine to exclude #+include in COMMENT headlines IMO. Done in master. Regards, -- Nicolas Goaziou