ob-exp: Consolidate export of code blocks
commite1139e18955e3dff9035a0d1783883801010828b
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 18 Jun 2016 21:15:24 +0000 (18 23:15 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sat, 18 Jun 2016 22:38:22 +0000 (19 00:38 +0200)
tree403483c535ee89c1030ac0da0656a7bec2a00d8b
parentcfaf0d54d7ff321f9e91be00b85660f1f0f49e27
ob-exp: Consolidate export of code blocks

* lisp/ob-exp.el (org-babel-exp--at-source): New macro.
(org-babel-exp-in-export-file): Remove macro.
(org-babel-exp-src-block): Remove unused argument.  Use new macro.
(org-babel-exp-process-buffer): Apply signature change above.  Put
temporary properties on top of Babel code so as to find original
location without relying on heuristics.
(org-babel-exp-results): Use new macro.

Export process has to know context of Babel code being evaluated (e.g.,
so as to retrieve parameters from node properties).  However, evaluating
previous code can drastically change the buffer.  The library used some
heuristics to find the original location.  Those are not necessary
anymore.
lisp/ob-exp.el