6
1
I have an org-mode document with a number of code blocks. Some of these take a long time to run, so I don't want to re-evaluate them each time I do an export.
I know I can prevent the re-evaluation by setting org-export-babel-evaluate to nil, but when I do this it won't print out the results of previous evaluations either, even if I have the code block "results" option set to "output".
Yes, I know I can remove the "#+results:" line from before the results block by hand, but this gets annoying whenever I need to reevaluate by hand, for example when I make a code change.
So, how can I get it to export the old results rather than re-evaluating each time?
I tried setting
:exports results
on some emacs-lisp code, and it still evaluated it on export... I'm not sure what exactly the difference is, so just noting that there may be more to this. (Also: this affects what output happens, which may or may not be desirable.) – lindes – 2018-02-24T07:16:27.3902I don't understand why this answer is accepted. Method described in the answer does not solve the issue. OTOH @lindes's answer seems to solve it. – muhuk – 2019-03-17T00:45:13.763
Because at the time (7 years ago), Org-Mode 9 was not out (Based on git tags latest release would have been 7.8.03). At the time the export options were not what they are today (or what they were in the other answers). With the changes that have been made to Org over the years the accepted answer should change but that depends on the asker. – Jonathan Leech-Pepin – 2019-03-20T13:10:30.523