From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [org-babel] switching off (re-)evaluation of code blocks during Org export Date: Mon, 28 Nov 2011 00:13:37 -0700 Message-ID: <87y5v067oe.fsf@gmail.com> References: <2A2CA71C-50E6-4533-BD40-2D879EF3BBCC@beds.ac.uk> <87aa7plzl8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUvPM-00034V-8J for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 02:13:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUvPH-000532-VH for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 02:13:44 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:40616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUvPH-00052x-Q8 for emacs-orgmode@gnu.org; Mon, 28 Nov 2011 02:13:39 -0500 Received: by iaek3 with SMTP id k3so10732457iae.0 for ; Sun, 27 Nov 2011 23:13:39 -0800 (PST) In-Reply-To: (Torsten Anders's message of "Sun, 27 Nov 2011 20:12:20 +0000") 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Torsten Anders Cc: Org-mode Hi Torsten, Change "non-export" to "no-export", see the manual for valid values for the eval header argument. Best -- Eric Torsten Anders writes: > Dear Eric, > > Apologies for my late response (too much teaching and admin in this new job :-P). Thanks a lot again for kingly adding the "eval" header > argument "non-export". From what I understand in your message this would be exactly what I was looking for (allow interactive > evaluation, but inhibit code block evaluation during export). I just pulled the latest org sources and tested your addition. > > Unfortunately, even when using this header argument value, code blocks in both Lilypond and Fomus are still executed when the buffer is exported to either PDF (via Latex) or HTML. > > Below is a test that I understood should not execute during export. Am I missing something? > > > #+begin_src fomus :eval non-export :results silent :file fomus-test.ly > time 1 dur 1 pitch 60; > #+end_src > [[file:fomus-test.pdf]] > > Thanks a lot again! > > Best wishes, > Torsten > > > On 22 Nov 2011, at 01:23, Eric Schulte wrote: > >> Hi Torsten, >> >> Torsten Anders writes: >> >>> Dear Sebastien and Eric, >>> >>> 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. >> >>> >>> I will try out the ":cache" header argument. However, again this does >>> not work so well, because for the languages I am using the :file >>> argument does not work very well (I have to manually change >>> extensions, so I include the resulting file links by hand anyway and >>> set :results to silent. >>> >>> So, I it sounds like few org-babel users is really running larger >>> applications in their code blocks which can delay the export of the >>> whole document considerably. >>> >> >> I would not jump to that conclusion. I have used babel code blocks to >> cache the results of very long running results, however between the >> :cache header argument and the ability to manually disassociate >> generated results from code blocks I have not had any problems >> inhibiting execution during export. >> >> Best -- Eric >> >>> >>> Anyway, thanks a lot for your feedback. >>> >>> Best wishes, >>> Torsten >>> >>> >>> >>> >> >> -- >> Eric Schulte >> http://cs.unm.edu/~eschulte/ > -- Eric Schulte http://cs.unm.edu/~eschulte/