From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: Re: Babel should not work in the subtree marked as not exported Date: Wed, 12 Mar 2014 18:46:31 +0800 Message-ID: <87ha73g0e0.fsf@gmail.com> References: <87wqg0gawq.fsf@gmail.com> <861ty7py70.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNh4L-000889-9l for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:11:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNh4D-0001Ak-0L for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:11:29 -0400 Received: from plane.gmane.org ([80.91.229.3]:55789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNh4C-0001Ae-Pd for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 07:11:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNh4A-0002f3-Jt for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 12:11:18 +0100 Received: from 115.236.9.82 ([115.236.9.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 12:11:18 +0100 Received: from zhangweize by 115.236.9.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Mar 2014 12:11:18 +0100 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastien Vauban writes: > Rainer M Krug wrote: >> Ken Mankoff writes: >>> On 2014-03-11 at 08:47, zwz wrote: >>>> In my setup, there is >>>> (setq org-export-exclude-tags '("private" "exclude") >>>> >>>> and In my test.org: >>>> >>>> * test >>>> >>>> ** Not exported :exclude: >>>> #+BEGIN_SRC ditaa :file test.png :cmdline -E >>>> +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ >>>> x | 0 cRED | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | >>>> +--------+---+---+---+---+---+---+---+ +---+---+---+---+---+---+---+---+ >>>> #+END_SRC >>>> >>>> ** blah blah >>>> blah blah blah >>>> >>>> >>>> When I try to export it to pdf, the test.png is still generated, >>>> although it is not used for the pdf at all. >>>> So I think the export procedure may be optimized for more efficiency. >>> >>> No, because I often have code and sections I don't want exported, but >>> I want their side-effects active. For example, code with sessions >>> where part is not exported, but I need that code run so code >>> elsewhere, using the same session, is able to run and be exported. >> >> AFAIK, this depends if you use a session. When you are using a session, >> *all* code blocks are evaluated, if you do not set the header argument >> session, only the ones which are exported are evaluated - precisely the >> reason you give. > > We should know if zwz uses a session or not. Because, IIUC, what he > reports is that all code blocks are evaluated, even the ones which are > not exported. > > Best regards, > Seb I checked my org settings, and did not found anything about "session". And here is the options in the file: #+OPTIONS: H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t Is session turned on by default?