From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [babel] using #+call for inline results Date: Sun, 26 Jun 2011 13:56:33 +0200 Message-ID: <4E071E71.4060804@christianmoe.com> References: <87mxhaunsi.fsf@ucl.ac.uk> <87mxh9omwb.fsf@gmail.com> <87mxh9pvz8.fsf@ucl.ac.uk> <87sjr1i040.fsf@gmail.com> <4E030676.3070504@christianmoe.com> <87hb7ej1pu.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qanvr-0003aH-79 for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 07:55:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qanvq-0000uj-72 for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 07:55:19 -0400 Received: from mars.hitrost.net ([91.185.211.18]:19811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qanvq-0000pY-0L for emacs-orgmode@gnu.org; Sun, 26 Jun 2011 07:55:18 -0400 In-Reply-To: <87hb7ej1pu.fsf@gmail.com> 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@gnu.org Hi, Eric, Very nice, thanks! I note the turnover on your long-term low-priority stack is about two days. :) But I seem to have a problem (running your example): Debugger entered--Lisp error: (invalid-function (nonempty (a b) (let ((it (match-string a))) (if (= (length it) 0) (match-string b) it)))) (nonempty (a b) (let (...) (if ... ... it)))() org-babel-lob-get-info() org-babel-lob-execute-maybe() org-babel-execute-maybe() org-babel-execute-safely-maybe() run-hook-with-args-until-success(org-babel-execute-safely-maybe) org-ctrl-c-ctrl-c(nil) call-interactively(org-ctrl-c-ctrl-c nil nil) Yours, Christian On 6/25/11 12:36 AM, Eric Schulte wrote: > Christian Moe writes: > >> +1 for inline calls. No hurry, though. >> > > I've just pushed up an implementation for inline call blocks, the new > syntax is described in the documentation but a simple example is below. > > #+source: square > #+begin_src emacs-lisp :var it=0 > (* it it) > #+end_src > > Here is a call_square(it=4) stuck in the middle of some prose. > > Please let me know how it works and if you have any problems or > recommendations. > > Cheers -- Eric >