emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: "Charles C. Berry" <ccberry@ucsd.edu>
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: Bug: org-export-babel-evaluate causes everything to be exported [8.3.4 (release_8.3.4-824-ga02fe8)]
Date: Fri, 20 May 2016 07:12:58 -0400	[thread overview]
Message-ID: <m2poshx9s5.fsf@gmail.com> (raw)
In-Reply-To: <alpine.OSX.2.20.1605192002260.11039@charles-berrys-macbook.local>


On 2016-05-19 at 23:33, Charles C. Berry <ccberry@ucsd.edu> wrote:
> On Thu, 19 May 2016, Ken Mankoff wrote:
>
>> I've noticed that code and results are all getting exported in the
>> latest Org mode git head. This is new behavior. I haven't traced it
>> to what commit caused this change, but the stock 8.2.10 install does
>> not have this bug.
>>
>> The offending setting is:
>>
>> (setq org-export-babel-evaluate nil)
>
> I think this is a *feature* not a bug.
>
> It turns off all of babel on export. So the code will still be there
> and any results that were already in the buffer will also be there.

The documentation is: "Switch controlling code evaluation during export.
When set to nil no code will be evaluated as part of the export
process."

which is different than "all code and results will be exported". Evaluation and export are two different things.

> You can use `org-babel-remove-result-one-or-many' with a prefix if you 
> want results to be stripped (prior to export, say).
>
> You can use :cache to prevent re-evaluation of code blocks and set
> org-export-babel-evaluate to t. Then the `:exports results' blocks
> will not have their code run nor exported.


(setq org-export-babel-evaluate t)

#+BEGIN_SRC octave :exports results :cache nil
"hello, world"
#+END_SRC
#+RESULTS:
: hello, world

Yes, the above appears to work.

Thanks,

   -k.

  reply	other threads:[~2016-05-20 11:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-20  0:13 Bug: org-export-babel-evaluate causes everything to be exported [8.3.4 (release_8.3.4-824-ga02fe8)] Ken Mankoff
2016-05-20  0:18 ` Ken Mankoff
2016-05-20  3:33 ` Charles C. Berry
2016-05-20 11:12   ` Ken Mankoff [this message]
2016-05-20 11:28     ` Ken Mankoff
2016-05-20 17:29       ` Charles C. Berry
2016-05-20 17:44         ` Ken Mankoff
2016-05-20 17:48           ` Charles C. Berry
2016-05-20 23:03             ` Ken Mankoff

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=m2poshx9s5.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).