[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-babel order of evaluation
From: |
Eric Schulte |
Subject: |
Re: [O] org-babel order of evaluation |
Date: |
Thu, 12 Jan 2012 07:43:41 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
Rick Frankel <address@hidden> 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/
- [O] org-babel order of evaluation, Rick Frankel, 2012/01/11
- Re: [O] org-babel order of evaluation,
Eric Schulte <=
- Re: [O] org-babel order of evaluation, Leo Alekseyev, 2012/01/12
- Re: [O] org-babel order of evaluation, Rick Frankel, 2012/01/12
- Re: [O] org-babel order of evaluation, Eric Schulte, 2012/01/12
- Re: [O] org-babel order of evaluation, Rick Frankel, 2012/01/12
- Re: [O] org-babel order of evaluation, Leo Alekseyev, 2012/01/20
- Re: [O] org-babel order of evaluation, Eric Schulte, 2012/01/23