From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: How do I chain babel blocks with arguments? Date: Tue, 22 Apr 2014 08:53:09 +0200 Message-ID: References: <87d2gg0xjc.fsf@gmail.com> <87oazwdb0y.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcUhX-0000k2-E3 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 03:01:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcUhP-0006pZ-UW for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 03:01:07 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:15094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcUhP-0006pC-NP for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 03:00:59 -0400 In-Reply-To: <87oazwdb0y.fsf@gmail.com> (Eric Schulte's message of "Sat, 19 Apr 2014 19:41:21 -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 Hi Eric, On 2014-04-20 03:41, Eric Schulte 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--- I'm not sure I mentioned it earlier, but I found a workaround using `org-sbe'. Thanks, Alan