[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-babel order of evaluation
From: |
Rick Frankel |
Subject: |
[O] org-babel order of evaluation |
Date: |
Wed, 11 Jan 2012 19:25:06 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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.
Given the following:
#+name: one(v="one")
#+begin_src elisp
v
#+end_src
#+call: one("two")
#+name: three(v="three")
#+begin_src elisp
v
#+end_src
The message buffer shows:
executing Elisp code block (one)...
(v (quote "one"))
Code block evaluation complete.
executing Elisp code block (three)...
(v (quote "three"))
Code block evaluation complete.
executing Elisp code block (one)...
(v (quote "two"))
"two"
executing Emacs-Lisp code block...
(results (quote "two"))
- [O] org-babel order of evaluation,
Rick Frankel <=
- Re: [O] org-babel order of evaluation, Eric Schulte, 2012/01/12
- 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