Rick Frankel <r...@rickster.com> writes:

> There is a problem with the order of execution of interspersed source
> and call blocks will not be executed in order because of the way
> org-babel-execute-buffer is written (first all the source blocks, then
> all the call blocks). 
>
> Therefore, when executing an entire buffer, there is no way to have
> the execution of a call block dependent on the prior execution of a
> source block.
>

It would be better to make the dependency explicit by passing the
results of the call line as a (potentially unused) variable to the code
block.  For example;

  #+name: three(v="three")
  #+begin_src elisp :var foo=one("two")
  v
  #+end_src

There is (at least currently) no guarantee that evaluation order will be
buffer order.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

Reply via email to