From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [org-babel] switching off (re-)evaluation of code blocks during Org export Date: Tue, 22 Nov 2011 10:46:48 +0100 Message-ID: <8062ictrp3.fsf@somewhere.org> References: <2A2CA71C-50E6-4533-BD40-2D879EF3BBCC@beds.ac.uk> <87aa7plzl8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, Eric Schulte wrote: > Torsten Anders writes: >> Thanks a lot for your kind replies. However, this is not yet quite what I am after. >> >> I want to be able to manually execute each code block, but not >> automatically whenever the whole document is rendered. So, I would >> always switch on/off "eval never". Hm... > > I've just pushed up a patch which adds a new option to the "eval" header > argument. Setting eval to "non-export" will now allow interactive > evaluation, but will inhibit code block evaluation during export. This > should address your need as I understand it. It certainly is a good addition, but wouldn't it be better to add an orthogonal argument for the "exports" stuff, that is a second parameter? I mean: you've added `non-export' which maps to: - `yes' for interactive evaluation - `never' for export I'm sure a guy (or a woman) will ask in a short future for: - `query' for interactive evaluation - `never' for export. Hence, maybe we should be able to set 2 possible behaviors[1] for the `eval' parameter: - one for the interactive mode (yes/query/no), and - one for the export mode (yes/no, and maybe query as well?). Best regards, Seb Footnotes: [1] Like for results, where we can give up to 3 options: `:results output scalar raw' -- Sebastien Vauban