emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How do I chain babel blocks with arguments?
@ 2014-04-16 17:04 Alan Schmitt
  2014-04-16 20:49 ` Charles Berry
  2014-04-17  5:42 ` Eric Schulte
  0 siblings, 2 replies; 14+ messages in thread
From: Alan Schmitt @ 2014-04-16 17:04 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I have several babel blocks that each work well, but I'm now trying to
chain them to build some bigger functionality out of them. I'm having
trouble finding out how to pass arguments between blocks. Here is
a small example:

--8<---------------cut here---------------start------------->8---
#+name: test1
#+begin_src emacs-lisp :var x="foo"
x
#+end_src

#+name:test2
#+begin_src emacs-lisp :var z="bar" :var y=test1(x=z)
y
#+end_src

#+call: test2(z="baz")
--8<---------------cut here---------------end--------------->8---

Unfortunately this does not work: the evaluation of block `test2' fails
by telling me `z' does not exist.

How can I execute block `test1' from block `test2' by passing an
argument that is one from test2?

Thanks,

Alan

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-04-24  1:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 17:04 How do I chain babel blocks with arguments? Alan Schmitt
2014-04-16 20:49 ` Charles Berry
2014-04-17 10:11   ` Alan Schmitt
2014-04-17 10:24     ` Thorsten Jolitz
2014-04-17 11:37       ` Alan Schmitt
2014-04-17  5:42 ` Eric Schulte
2014-04-18  6:43   ` Alan Schmitt
2014-04-20  1:41     ` Eric Schulte
2014-04-20  3:33       ` Xebar Saram
2014-04-21  1:22         ` Eric Schulte
2014-04-22  6:53       ` Alan Schmitt
2014-04-22 11:30         ` Eric Schulte
2014-04-22 12:47           ` Alan Schmitt
2014-04-24  1:16             ` Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).