[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] #+header keywords for #+call keyword?
From: |
Eric Schulte |
Subject: |
Re: [O] #+header keywords for #+call keyword? |
Date: |
Wed, 24 Jul 2013 16:35:31 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
"Dieter Wilhelm, H." <address@hidden> writes:
> Dear (),
>
> I've got a rather long argument list and it doesn't look good to
> supply all the arguments in one line, could somebody please implement
> #+header arguments for #+call like in the following example?
>
> #+header: :var NO=(org-entry-get nil "Report_Dir")
> #+header: :var DIR=(org-attach-dir)
> #+call: ProvideReport()[:results silent]
>
> By the way, is it still true that the number of #+header keywords for
> code blocks is restricted to 5 #+header lines? I think this is also
> an unnecessary restriction.
>
> Thank you very much
>
The #+call: line syntax is a shortened syntax for code blocks. They
recently got #+names, hopefully soon they will get #+header arguments as
well. In the interum, you can always use a code block
#+header: :var NO=(org-entry-get nil "Report_Dir")
#+header: :var DIR=(org-attach-dir)
#+call: ProvideReport()[:results silent]
can be replaced by
#+header: :var NO=(org-entry-get nil "Report_Dir")
#+header: :var DIR=(org-attach-dir)
#+begin_src emacs-lisp :var result=ProvideReport() :results silent
result
#+end_src
Best,
>
> Dieter
> --
> Best wishes
>
> H. Dieter Wilhelm
>
> Darmstadt
> Germany
>
--
Eric Schulte
http://cs.unm.edu/~eschulte