Alan Schmitt <alan.schm...@polytechnique.org> writes: > Hi Eric, > > On 2014-04-20 03:41, Eric Schulte <schulte.e...@gmail.com> writes: > >>> --8<---------------cut here---------------start------------->8--- >>> #+name: z >>> : "bar" >>> #+name: test3 >>> #+begin_src emacs-lisp :var x="foo" >>> x >>> #+end_src >>> >>> #+name:test4 >>> #+begin_src emacs-lisp :var y=test1(x=z) >>> y >>> #+end_src >>> >>> #+results: test4 >>> : "bar" >>> >>> #+call: test4(z="BAZ") >> ^ >> The above line has an error, your "z" should be an "x". > > I tried this change, and the argument is not taken into account: > > --8<---------------cut here---------------start------------->8--- > #+call: test4(x="BAZ") > > #+results: > : "bar" > --8<---------------cut here---------------end--------------->8--- >
Sorry, that's because the "x" should be "z". See the following. --8<---------------cut here---------------start------------->8--- #+name: z : "bar" #+name: test3 #+begin_src emacs-lisp :var x="foo" x #+end_src #+RESULTS: test3 : foo #+name:test4 #+begin_src emacs-lisp :var y=test3(x=z) y #+end_src #+results: test4 : "bar" #+call: test4(y="BAZ") #+RESULTS: : BAZ --8<---------------cut here---------------end--------------->8--- > > I'm not sure I mentioned it earlier, but I found a workaround using > `org-sbe'. > Yes, I had noticed, but simple argument passing is also sufficient. Best, > > Thanks, > > Alan -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D