From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: #+header keywords for #+call keyword? Date: Wed, 24 Jul 2013 16:35:31 -0600 Message-ID: <87mwpboaa0.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V27iF-0008HU-Fd for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 18:39:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V27iE-0006T2-F4 for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 18:39:15 -0400 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:40339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V27iE-0006Sy-91 for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 18:39:14 -0400 Received: by mail-pd0-f181.google.com with SMTP id g12so421306pdj.26 for ; Wed, 24 Jul 2013 15:39:13 -0700 (PDT) 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: dieter@duenenhof-wilhelm.de Cc: "Emacs-orgmode@gnu.org" "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 Best, > > Dieter > -- > Best wishes > > H. Dieter Wilhelm > > Darmstadt > Germany > -- Eric Schulte http://cs.unm.edu/~eschulte