* [Babel] pass through header arguments on #+call: lines
@ 2010-11-08 21:33 Eric Schulte
0 siblings, 0 replies; only message in thread
From: Eric Schulte @ 2010-11-08 21:33 UTC (permalink / raw)
To: Org Mode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-08 21:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 21:33 [Babel] pass through header arguments on #+call: lines 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).