From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] silent code block evaluation on export Date: Wed, 01 Sep 2010 19:37:50 -0600 Message-ID: <87k4n5c4cx.fsf@gmail.com> References: <4C7D4D12.1070002@ccbr.umn.edu> <87d3sxdmqv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=52852 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqykW-0003iE-UP for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 21:37:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqykV-00007u-BD for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 21:37:56 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:63519) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqykV-00007m-7Q for emacs-orgmode@gnu.org; Wed, 01 Sep 2010 21:37:55 -0400 Received: by yxk8 with SMTP id 8so2721490yxk.0 for ; Wed, 01 Sep 2010 18:37:54 -0700 (PDT) In-Reply-To: <87d3sxdmqv.fsf@gmail.com> (Eric Schulte's message of "Wed, 01 Sep 2010 18:15:20 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: emacs-orgmode "Eric Schulte" writes: > Hi Erik, > > I believe that when a session is specified then all code blocks will be > evaluated but their results will not be included in the exported output. > To clarify the above, if a code block has a :session header argument, then it is assumed that the block should be evaluated regardless of it's :export header argument, because it could change the state of the session, so in the following simple example the first code block is evaluated on export despite having an :exports none header argument, and this ensure that the value of x is set for the second code block. --8<---------------cut here---------------start------------->8--- ** :session evaluation on export This first block is evaluated but /doesn't/ appear in export. /:session *R* :exports none/ #+begin_src R :session *R* :exports none x <- 8 #+end_src This second block /does/ appear in export. #+begin_src R :session *R* :exports results x #+end_src --8<---------------cut here---------------end--------------->8--- Cheers -- Eric