From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [feature request] refernce to call results Date: Wed, 13 Nov 2013 21:08:00 +0100 Message-ID: <87siv0f4kf.fsf@med.uni-goettingen.de> References: <87r4ak61uf.fsf@med.uni-goettingen.de> <864n7g1r4n.fsf@somewhere.org> <871u2kh6e4.fsf@med.uni-goettingen.de> <86vbzwzasi.fsf@somewhere.org> <87wqkcflm1.fsf_-_@med.uni-goettingen.de> <87r4ak9m2v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vggjc-0000J9-WE for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 15:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VggjV-00047j-Mr for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 15:08:20 -0500 Received: from plane.gmane.org ([80.91.229.3]:43846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VggjV-00047W-Gq for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 15:08:13 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VggjU-0000RN-IO for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 21:08:12 +0100 Received: from vpn-2079.gwdg.de ([134.76.2.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 21:08:12 +0100 Received: from andreas.leha by vpn-2079.gwdg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Nov 2013 21:08:12 +0100 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 Hi Eric, Eric Schulte writes: >> >> I agree completely. So my question boils down to this feature request: >> >> Now, that #+call lines can be named, would it be possible to reference >> the results the same way as for code blocks? >> > > I just pushed up a commit which should make this possible. E.g., > > * call by name > > #+name: echo-input > #+begin_src sh :var input="original" > echo "input=$input" > #+end_src > > #+RESULTS: echo-input > : input=original > #+name: echo-new > #+call: echo-input("new") > #+RESULTS: echo-new > : input=new > #+begin_src sh :var input=echo-new() > echo "this=$input" > #+end_src > > #+RESULTS: > : this=input=new > thanks a lot! I confirm that it works. This was really fast! Regards, Andreas