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

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to