From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: :header-args: over several lines? Date: Mon, 07 Jul 2014 02:01:09 +0200 Message-ID: <87bnt2t4u2.fsf@gmail.com> References: <87oaxga69a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3wN8-000054-ON for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 20:01:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3wN1-00073K-P2 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 20:01:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:51545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3wN1-00073D-J1 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 20:01:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X3wN0-0000KV-BW for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 02:01:22 +0200 Received: from g231108255.adsl.alicedsl.de ([92.231.108.255]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 02:01:22 +0200 Received: from tjolitz by g231108255.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 02:01:22 +0200 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: emacs-orgmode@gnu.org Rainer M Krug writes: > Along the same lines: > > When I use > > ,---- > | :header-args: :var RNGKIND="Mersenne-Twister" > | :header-args+: :var RNGNORMALKIND="Inversion" > `---- > > both variables are transferred - is var+ generally redundant, or i=only > in this case? When I start using :var+ or :header-args+, it mostly does not work for me. What is the syntax for this? Why and how is this used? * Test ** Works 1 :PROPERTIES: :header-args: :var x=3 :header-args+: :var y=4 :END: #+begin_src emacs-lisp (+ x y) #+end_src #+results: : 7 (but does not work when variables reference other src_blocks, see my bug report about :header-args:) ** Works 2 #+begin_src emacs-lisp :var u=2 v=3 (+ u v) #+end_src #+results: : 5 ** Works 3 #+header: :var u=2 #+header: :var v=3 #+begin_src emacs-lisp (+ u v) #+end_src #+results: : 5 #+headers: :var u=2 #+headers: :var v=3 #+begin_src emacs-lisp (+ u v) #+end_src #+results: : 5 ** Does not work #+header-args: :var u=2 #+header-args+: :var v=3 #+begin_src emacs-lisp (+ u v) #+end_src => progn: Symbol's value as variable is void: u #+header-args: :var u=2 #+header-args+: :var+ v=3 #+begin_src emacs-lisp (+ u v) #+end_src => progn: Symbol's value as variable is void: u #+var: u=2 #+var+: v=3 #+begin_src emacs-lisp (+ u v) #+end_src => progn: Symbol's value as variable is void: u #+var: u=2 v=3 #+begin_src emacs-lisp (+ u v) #+end_src => progn: Symbol's value as variable is void: u #+begin_src emacs-lisp :var u=2 :var+ v=3 (+ u v) #+end_src => progn: Symbol's value as variable is void: v -- cheers, Thorsten