emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Erik Iverson <eriki@ccbr.umn.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [babel] silent code block evaluation on export
Date: Wed, 01 Sep 2010 22:10:33 -0600	[thread overview]
Message-ID: <874oe8dbuu.fsf@gmail.com> (raw)
In-Reply-To: <4C7F0775.5060704@ccbr.umn.edu> (Erik Iverson's message of "Wed, 01 Sep 2010 21:09:57 -0500")

Erik Iverson <eriki@ccbr.umn.edu> writes:

> On 09/01/2010 08:37 PM, Eric Schulte wrote:
>> "Eric Schulte"<schulte.eric@gmail.com>  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,
>
>
> Ahh, I never tried exactly that.  However, this only seems to work
> if the :session is named.
>
> E.g., /:session *R* :exports none/ will do what you say,
>
> but not /:session :exports none/ , which may be a bug?
>

I agree this should be considered a bug.  In general we need to be more
explicit about what happens when a header argument is used without any
explicit argument (this same issue just came up with :noweb).

Noted. Thanks -- Eric

>
>
>
> 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

      reply	other threads:[~2010-09-02  4:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 18:42 [babel] silent code block evaluation on export Erik Iverson
2010-09-02  0:15 ` Eric Schulte
2010-09-02  1:37   ` Eric Schulte
2010-09-02  2:09     ` Erik Iverson
2010-09-02  4:10       ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874oe8dbuu.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eriki@ccbr.umn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).