From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Babel should not work in the subtree marked as not exported Date: Fri, 14 Mar 2014 09:40:58 +0100 Message-ID: <86pplpw4th.fsf@somewhere.org> References: <87wqg0gawq.fsf@gmail.com> <87lhwgettp.fsf@med.uni-goettingen.de> <87bnxbg02x.fsf@gmail.com> <87ha73dnxe.fsf@med.uni-goettingen.de> <87zjku41nq.fsf@gmail.com> <878usdemuv.fsf@med.uni-goettingen.de> <87eh25d22d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Samuel Wales wrote: >> No. This has been raised previously and there was a consensus that it >> is often desirable for code in a COMMENT section to be evaluated on >> export. Personally I often stuff code blocks into COMMENT sections >> which I want run as part of my publishing process (e.g., to create >> resources used in the exported document). > > i won't go against consensus, but to me the expectation is that it > acts just like commented lines. > > for your use case, could you use a section marked noexport or > org-export-with-tasks? i would use the latter. I was thinking as well that this had been discussed previously, and that the decision had been: - COMMENT is equivalent to "noexport" and "noeval", i.e. no code blocks are run - "noexport" just does that: no export, but code blocks can be run. But I don't find any evidence of this. I must have misunderstood. Best regards, Seb -- Sebastien Vauban