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, 21 Nov 2011 10:34:10 -0700 Message-ID: <87ipmdnzvx.fsf@gmail.com> References: <42D129CE-5B0E-4793-B7CB-49A49D34217C@beds.ac.uk> <80fwhhidyx.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSXl6-000524-PK for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 12:34:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSXl2-0002QG-Hm for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 12:34:20 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:60272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSXl2-0002Q7-Eq for emacs-orgmode@gnu.org; Mon, 21 Nov 2011 12:34:16 -0500 Received: by ywp17 with SMTP id 17so6100134ywp.0 for ; Mon, 21 Nov 2011 09:34:15 -0800 (PST) In-Reply-To: <80fwhhidyx.fsf@somewhere.org> (Sebastien Vauban's message of "Mon, 21 Nov 2011 18:26:30 +0100") 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Torsten, > > Torsten Anders wrote: >> Dear Org-Babel developers, >> >> When I am exporting an *.org buffer to, say, HTML or PDF (via Latex) the >> code blocks of at least some languages are executed during the export >> process. (Has this always been like that, I noticed this for the first >> time?) >> >> I would like to switch that off completely. I prefer evaluating code blocks >> individually to check their results. Also, many of by code blocks run >> substantial programs which slow down the export process considerably. >> >> I could not find an option to switch this off in the documentation. >> Apologies if I missed something obvious. I assume it is there somewhere, but >> I could not find it. > > #+PROPERTY: eval never > > does inhibit evaluation of the code blocks. > You could also look into using the ":cache" header argument to only re-run code blocks when their inputs have changed, or sometimes I find it easy to simply disassociate the results of a code block from the code block itself (e.g., through a rename), and then change the export property of the code block to either "code" or "none". Best -- Eric > > Best regards, > Seb -- Eric Schulte http://cs.unm.edu/~eschulte/