org-babel: Hash based caching of results in buffer
commit1453f0294d32284441629b4a71142c0b0a55cc9d
authorEric Schulte <schulte.eric@gmail.com>
Fri, 20 Nov 2009 17:40:50 +0000 (20 10:40 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Fri, 20 Nov 2009 17:42:33 +0000 (20 10:42 -0700)
treeb266f869509104eb3220e6c19002b12879a990d3
parent24061fddd1cc66eafeaee22ee2a93648cb94ef8a
org-babel: Hash based caching of results in buffer

  This commit expands the #+resname: line to include a sha1 hash of
  the contents of the source-code block (including header arguments).
  This hash is saved in raw text in the resname line.  When a source
  block is evaluated it's hash is recalculated and checked against the
  hash in it's results line, if they are equal the current results are
  returned with no recalculation.

  Optional prefix argument when evaluating a source block will force
  re-calculation.

  caching behavior can be inhibited through the use of the :nocache
  header argument.  for global inhibition of caching add :nocache to
  the `org-babel-default-header-args' variable.
contrib/babel/lisp/org-babel-ref.el
contrib/babel/lisp/org-babel.el