[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [Babel] pass through header arguments on #+call: lines
From: |
Eric Schulte |
Subject: |
[Orgmode] [Babel] pass through header arguments on #+call: lines |
Date: |
Mon, 08 Nov 2010 14:33:22 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
There has been some recent discussion/questions regarding how to pass
header arguments through to a code block being called using a #+call
line. I've just pushed up a change which makes this possible. Call
lines now have the following syntax, where each header argument portion
is optional.
#+call: block-name[:header args for block](arguments) :header args for call line
here's a (possibly) illuminating example
#+source: echo
#+begin_src emacs-lisp :var n="me"
(message "hi %s" n)
#+end_src
#+call: echo()
#+results: echo()
: hi me
#+call: echo(n="you")
#+results: echo(n="you")
: hi you
#+call: echo[:var n="you"]()
#+results: echo[:var n="you"]()
: hi you
#+call: echo() :results vector
| hi me |
#+call: echo() :var n="you"
: hi me
Best -- Eric
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] [Babel] pass through header arguments on #+call: lines,
Eric Schulte <=