From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: [babel] Trouble with :cache yes Date: Wed, 23 Mar 2011 16:55:07 -0500 Message-ID: References: <87pqphd7nd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=33019 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2W2O-0007Mz-MW for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 17:56:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2W1J-0008Qz-Bp for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 17:55:14 -0400 Received: from mailout4-tlr.thomson.com ([163.231.12.71]:15024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2W1J-0008Qd-41 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 17:55:13 -0400 Received: from mailout4-tlr.thomson.com (localhost.localdomain [127.0.0.1]) by mailout4-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id p2NLt94T013924 for ; Wed, 23 Mar 2011 21:55:10 GMT In-Reply-To: <87pqphd7nd.fsf@gmail.com> Content-Language: en-US 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: schulte.eric@gmail.com Cc: emacs-orgmode@gnu.org, r.m.krug@gmail.com 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? -- Ken Williams Senior Research Scientist Thomson Reuters http://labs.thomsonreuters.com