From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: question about chaining function calls in org-babel Date: Thu, 05 Aug 2010 20:41:01 -0400 Message-ID: <87mxt0374y.fsf@gmail.com> References: <87tyn9erq3.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=53672 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhAzj-0007q9-LQ for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 20:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhAzi-0006xh-GS for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 20:41:07 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:49314) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhAzi-0006xd-EG for emacs-orgmode@gnu.org; Thu, 05 Aug 2010 20:41:06 -0400 Received: by vws16 with SMTP id 16so6588106vws.0 for ; Thu, 05 Aug 2010 17:41:05 -0700 (PDT) In-Reply-To: <87tyn9erq3.fsf@stats.ox.ac.uk> (Dan Davison's message of "Wed, 04 Aug 2010 22:08:36 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs-orgmode@gnu.org, Inquisitive Scientist Dan Davison writes: [...] > > | mean | > |--------| > | #ERROR | > #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size 16)))) > > I *believe* that there is no expectation for this to work, because sbe > is an elisp function (well, a macro), and not a source block. In other > words, the first sbe is expecting a source block reference, whereas what > it gets is this lisp form: > > (sbe "tbl-example-data" (seed 4) (size 16)) > > My guess is that sbe does not undertake to evaluate a lisp form > occurring in that context. But I admit that I still find these > complicated macros more or less incomprehensible, so we could do with > Eric's input here. > Dan is correct, the example above with nested calls to sbe will not work, something like the following at least has the possibility of working. | mean | |--------| | #ERROR | #+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=6)")) Unfortunately I don't have the time to test this right now. Best -- Eric