Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results
On Mon, Oct 3, 2016 at 8:22 PM, William Dentonwrote: > There's always something new to learn in Org---and something new to be > learned from this mailing list. Never evaluating on export or tangle is my favorite way, too: https://www.wisdomandwonder.com/article/10400/the-fifteen-questions-that-you-must-answer-in-your-org-mode-literate-programming-configuration
Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results
On 29 September 2016, Charles C. Berry wrote: 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. Actually it does a lot LESS than that. My sincere thanks for pointing this out. I spent an hour narrowing down the problem to one variable, but then didn't read the documentation on it. To help myself remember to try to never do this again, I wrote it up: https://www.miskatonic.org/2016/10/03/orgexportbabelevaluate/ There's always something new to learn in Org---and something new to be learned from this mailing list. Bill -- William Denton :: Toronto, Canada :: https://www.miskatonic.org/ Caveat lector.
Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results
This setting is one of the gems for developing a personal workflow. My workflow is to never evaluate during export because I want the document to serve as the "master" or the "one source of truth" that is stored in version control. The other perspective is never to store it which is what some people want, too! Sincerely, Grant Rettke On Thu, Sep 29, 2016 at 3:34 PM, Charles C. Berrywrote: > On Thu, 29 Sep 2016, William Denton wrote: > >> 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. >> > > Actually it does a lot LESS than that. > > The docstring notes that: > > "When set to nil no code will be evaluated as part of the export > process and no header argumentss will be obeyed." > > and advises: > > "Users who wish to avoid evaluating code on export should use the header > argument ‘:eval never-export’." > > which sounds like what you wanted. > > Chuck
Re: [O] Bug? org-export-babel-evaluate setting breaks :exports results
On Thu, 29 Sep 2016, William Denton wrote: 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. Actually it does a lot LESS than that. The docstring notes that: "When set to nil no code will be evaluated as part of the export process and no header argumentss will be obeyed." and advises: "Users who wish to avoid evaluating code on export should use the header argument ‘:eval never-export’." which sounds like what you wanted. Chuck
[O] Bug? org-export-babel-evaluate setting breaks :exports results
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 #+END_SRC #+RESULTS: : 307 ## END I'm not sure what's happening, but it seems like a bug. (This is on Emacs 25.2.50.2 with Org compiled from source today, up to Nicolas's 2b22d503e1ee83f3a2681964f9de8405438a6385 commit yesterday). Bill -- William Denton :: Toronto, Canada :: https://www.miskatonic.org/ Caveat lector.