From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Short Subject: Re: [babel] exports, caching, remote execution Date: Thu, 19 Aug 2010 20:59:16 +0000 (UTC) Message-ID: References: <87eig5en4p.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43826 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmCCy-000787-CH for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 16:59:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmCCx-0001mR-7A for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 16:59:32 -0400 Received: from lo.gmane.org ([80.91.229.12]:46050) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmCCw-0001mB-Tx for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 16:59:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OmCCs-00013T-Oy for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 22:59:27 +0200 Received: from pool-68-236-140-221.alb.east.verizon.net ([68.236.140.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 22:59:26 +0200 Received: from tshort by pool-68-236-140-221.alb.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 22:59:26 +0200 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: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > > Hi Austin, > > Austin Frank gmail.com> writes: > > > Hey all-- > > > > Two (hopefully quick) questions: > > > > 1) Does the exporter respect the :cache argument? When I evaluate a > > buffer, I can tell that cached blocks are not re-run, as expected. > > When I export to \LaTeX or PDF, it seems that all blocks in the file > > are re-run. Is there a way to force the exporter to respect caching? > > > > I believe the exporter does respect caching, the following minimal > example worked (i.e. was not re-run) for me on export to html. Could > you provide an example that demonstrates the problem? Eric, here's an example where the exporter does not respect caching. - Tom #+BABEL: :session *R* :results output :exports both :cache yes * A test of caching #+begin_src R cat("random result:", runif(1), "\n") Sys.sleep(2) alarm() #+end_src #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]: : random result: 0.2799064 #+begin_src R cat("random result:", runif(1), "\n") Sys.sleep(2) alarm() #+end_src #+results[b2549fac8a1ec2923ae289d47ce55fb2853dd1de]: : random result: 0.1625634 ** cache on export do we export cached blocks #+begin_src emacs-lisp :cache yes :exports results (random) #+end_src #+results[46632b4fe2e3a23e847953c95adcba58c270b381]: : 490528137