emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] #+header keywords for #+call keyword?


From: Dieter Wilhelm
Subject: Re: [O] #+header keywords for #+call keyword?
Date: Thu, 25 Jul 2013 08:31:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Eric Schulte <address@hidden> writes:

> "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

I see, thank you, your suggestion is a already a good workaround for my
needs. :-)

Could you please also tell me whether you know of any restrictions
concerning the number of #+header lines before a code block?

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany



reply via email to

[Prev in Thread] Current Thread [Next in Thread]