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 14:47:38 +0200 Message-ID: References: <87d2gg0xjc.fsf@gmail.com> <87oazwdb0y.fsf@gmail.com> <87sip5ha70.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wca7A-0006Ar-9j for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 08:48:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wca72-0007fB-R2 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 08:47:56 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:60075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wca72-0007et-K3 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 08:47:48 -0400 In-Reply-To: <87sip5ha70.fsf@gmail.com> (Eric Schulte's message of "Tue, 22 Apr 2014 07:30:39 -0400") 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-22 13:30, Eric Schulte writes: > Sorry, that's because the "x" should be "z". See the following. > > #+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 I'm afraid I'm not being clear: I want to use the result of `test3' in the computation done to test4. Intuitively, I want test4 to be something like: "(lambda (x) (... (test3 x) ...))". This is why I was writing a header of the form: > #+begin_src emacs-lisp :var x="foo" :var y=test3(x) where x would be given by the call to the block, and y would only be used internally. Thanks, Alan