ob-exp: better caching on export
commit563994842d44f049c98ef0dcf7be94006ce1d9ee
authorEric Schulte <schulte.eric@gmail.com>
Sun, 27 Feb 2011 18:01:56 +0000 (27 11:01 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Sun, 27 Feb 2011 18:01:56 +0000 (27 11:01 -0700)
tree0e3e8d514148177dfddfe2b89f6695ad6bb57d4d
parentdd31a84af65dfcadb8d334ea0d92c24d86fd9491
ob-exp: better caching on export

  - calling org-babel-process-params on the parameters before the hash
    is calculated
  - calculating the hash before the noweb references are expanded

* lisp/ob-exp.el (org-babel-exp-src-block): When block will eventually
  be evaluated, pre-calculate the hash before noweb expansion, and
  expand the parameters before hash calculation.
  (org-babel-exp-do-export): Pass pre-calculated hash through to
  `org-babel-exp-results'.
  (org-babel-exp-results): Compare pre-calculated hash to results hash.
lisp/ob-exp.el