From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: [babel] Trouble with :cache yes Date: Wed, 23 Mar 2011 17:00:16 -0500 Message-ID: <4D8A6D70.8000903@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=51283 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2W6s-0000k8-MJ for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:01:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2W6I-0000fA-38 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:00:23 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2W6H-0000ew-TV for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 18:00:22 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken.Williams@thomsonreuters.com Cc: emacs-orgmode@gnu.org, r.m.krug@gmail.com Ken.Williams@thomsonreuters.com wrote: > > On 3/23/11 1:16 PM, "Eric Schulte" wrote: > >> writes: >>> Or perhaps, is there some command to evaluate all blocks in a document >>> that need to be re-evaluated, and save the results back to the buffer? >>> I >>> could do that every time before exporting, maybe. >>> >> Fortunately there is such a function, org-babel-execute-buffer, bound to >> C-c C-v b, try C-c C-v h in an Org-mode buffer to see all code block >> specific key bindings. > > > So I tried doing that, and unfortunately it looks like I'm going to have > to restructure my document a bit if I want to use it. I'd been using > "#+begin_src" blocks in two different ways - some blocks are just "code > listings" that I don't really intend to run, whereas some blocks are "live > code" that I want to execute when exporting the document - these latter > have Babel-style arguments like ":exports both" or ":results output" and > the like. > > Of course, "C-c C-v b" will treat *all* of the blocks like "live code" > blocks, so I'm looking for some way to shut off Babel processing of many > of the blocks and just treat them as styled code listings. Is there some > flag to do that, or should I switch from "#+BEGIN_SRC sh" to > "#+BEGIN_EXAMPLE sh" or something? Does BEGIN_EXAMPLE know about > different languages of code? Try :eval never http://orgmode.org/org.html#eval Don't know if that will work, but it sounds promising. --Erik