[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Bug? org-export-babel-evaluate setting breaks :exports results

From: William Denton
Subject: [O] Bug? org-export-babel-evaluate setting breaks :exports results
Date: Thu, 29 Sep 2016 13:23:50 -0400 (EDT)
User-agent: Alpine 2.02 (DEB 1266 2009-07-14)

I'm working on a big Org file on a slow machine, so I set org-export-babel-evaluate to nil so exporting to PDF just generates the file from what's in the buffer, without doing any calculating.

I have a mix of source blocks, and all of a sudden the code began to appear in the PDF when all I wanted were the results. I boiled it down to the example below. If you save that to a file, load it, ~C-c C-e l o RET~ to export to PDF, you will see the ls command and the output, even though the setting is ":exports results".

Now delete the org-export-babel-evaluate line, ~C-x C-v RET~ to reload the file and pick up the new setting, then export to PDF. You will not see the ls command, just the output.

###### BEGIN
# -*- org-export-babel-evaluate: nil -*-

#+BEGIN_SRC shell :results value :exports results
ls /etc | wc -l

: 307
###### END

I'm not sure what's happening, but it seems like a bug.

(This is on Emacs with Org compiled from source today, up to Nicolas's 2b22d503e1ee83f3a2681964f9de8405438a6385 commit yesterday).

William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]