From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henning Redestig Subject: Re: feature request: re-compute cache without evaluation Date: Thu, 12 Apr 2012 16:50:46 +0200 Message-ID: References: <87zkahb0k3.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILMR-0003bR-08 for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 10:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SILMG-0006No-VE for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 10:50:58 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:47448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SILMG-0006NN-JI for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 10:50:48 -0400 Received: by eeke53 with SMTP id e53so572170eek.0 for ; Thu, 12 Apr 2012 07:50:46 -0700 (PDT) In-Reply-To: <87zkahb0k3.fsf@gmx.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org ah, this was easy, thanks! 2012/4/12 Eric Schulte : > Henning Redestig writes: > >> Hi, >> >> I write many source blocks that take a fairly long time to execute >> (several minutes). Sometimes I find myself wanting to do cosmetic >> changes to the code, that I know (for sure) do not change the output, >> after the first evaluation. Unfortunately, after having made these >> changes the cache obviously does not match the code anymore and I have >> to re-evaluate to update the cache. I know it goes against the strict >> 'reproducible research' idea but still I would like to be able to >> re-compute the cache without actually evaluating the block as it is >> not efficient to re-evaluate for the sole purpose of updating the >> cache. >> >> What do you think? > > Press C-c C-v a (org-babel-sha1-hash) in the code block, then manually > replace the original hash with the hash returned by that function. > > -- > Eric Schulte > http://cs.unm.edu/~eschulte/ -- /Henning