From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Babel should not work in the subtree marked as not exported Date: Tue, 11 Mar 2014 15:03:43 +0100 Message-ID: References: <87wqg0gawq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNNHt-0003Ts-UO for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 10:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNNHm-0005JB-I6 for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 10:04:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:53408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNNHm-0005J5-Ba for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 10:04:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WNNHh-0002KO-QZ for emacs-orgmode@gnu.org; Tue, 11 Mar 2014 15:03:57 +0100 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Mar 2014 15:03:57 +0100 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Mar 2014 15:03:57 +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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Ken Mankoff writes: > On 2014-03-11 at 08:47, zwz wrote: >> In my setup, there is=20 >> (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. Rainer > > -k. > > =2D-=20 Rainer M. Krug email: RMKruggmailcom --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTHxfDAAoJENvXNx4PUvmC3HkH+wfw9iPkSHiWChESQ0+s1Xmo dJaY/Rxn7TJ9z+FzfOgR1UbdEYmo8Hr3E2UQuKi6dzcJZL6STb9ggXSrEEegtZ2O Exkzu2JQau83lXUei3PCEZEvu1yybrZSrYjYN6xZkytxWCmE5vHr0I8/DXx2e8sK VT8CwJkgcumw2HYyhfPAEhxpZmnP1XCHnigRgiGd4RQWt/QwoihT+05qui7Ms7sq trOtEDqUg+j5MvtV1cvISLAueZZKAsSG+BskphcX74ruggwHjmLu86zGfdeuBcKY Ni/UM3pNSIR2H0IOJW0+mUXImCdCUTlx4zoJO8StUGjpdQ0R6E6PZY9nzwdPSwI= =vS9p -----END PGP SIGNATURE----- --=-=-=--