From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dieter Wilhelm Subject: Re: #+header keywords for #+call keyword? Date: Thu, 25 Jul 2013 08:31:57 +0200 Message-ID: <874nbjgnfm.fsf@duenenhof-wilhelm.de> References: <87mwpboaa0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2F8L-0003ha-Sm for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 02:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2F8H-0007tO-TY for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 02:34:41 -0400 Received: from mail-ea0-x234.google.com ([2a00:1450:4013:c01::234]:47824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2F8H-0007tJ-NF for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 02:34:37 -0400 Received: by mail-ea0-f180.google.com with SMTP id r16so700919ead.25 for ; Wed, 24 Jul 2013 23:34:36 -0700 (PDT) In-Reply-To: <87mwpboaa0.fsf@gmail.com> (Eric Schulte's message of "Wed, 24 Jul 2013 16:35:31 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "Emacs-orgmode@gnu.org" Eric Schulte writes: > "Dieter Wilhelm, H." 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