From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [RFC] Standardized code block keywords Date: Tue, 25 Oct 2011 20:17:58 -1000 Message-ID: References: <87pqhrih3s.fsf@gmail.com> <201110250914.29233.DanielBausch@gmx.de> <8739eh3v57.fsf@gmail.com> <201110260741.56064.DanielBausch@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIwoV-0002BH-Cm for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 02:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIwoU-0000j7-5N for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 02:18:11 -0400 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]:60011) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RIwoT-0000ih-SV for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 02:18:10 -0400 In-Reply-To: <201110260741.56064.DanielBausch@gmx.de> (Daniel Bausch's message of "Wed, 26 Oct 2011 07:41:55 +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: Daniel Bausch Cc: emacs-orgmode@gnu.org Daniel Bausch writes: >> > However, I'd like to ask, what happens, if one refers to a >> > name of a source block where data is expected, does it then refer to >> > the results produced by that source block? How are such situations >> > handeled at the moment? >> >> Try it out, but be ready to press C-g, because I would guess that it >> results in an infinite loop. > > Isn't it possible to refer to the results of a code block as input data for > another? I thought it was. If not currently then at least I suppose that it > will be in the future. The new syntax should be ready for that. > > Daniel > Aloha Daniel, Yes, it is already possible to refer to named :results as input data for another source code block. This is an important feature that makes it possible to record intermediate results in the Org-mode file. Also, passing the name of one source code block to a variable of another source code block is called chaining. This is an important feature that makes it possible to do part of a computation in one language and then another part in a different language, without having to write out intermediate results. AFAIK, there is no limit to this chaining behavior. I haven't run into an infinite loop doing either of these things, perhaps because I've not written a source code block that refers to its own results? hth, Tom -- Thomas S. Dye http://www.tsdye.com