From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: using org-babel-trim in org-sbe? Date: Fri, 18 Apr 2014 18:51:30 +0200 Message-ID: References: <871twulqtu.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbDA1-0006rL-J0 for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 14:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbD9u-0006mq-Lx for emacs-orgmode@gnu.org; Fri, 18 Apr 2014 14:05:13 -0400 In-Reply-To: <871twulqtu.fsf@bzg.ath.cx> (Bastien's message of "Fri, 18 Apr 2014 15:17:33 +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: Bastien Cc: emacs-orgmode On 2014-04-18 15:17, Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> #+TBLFM: $2='(org-sbe spending (c (concat "\"" $1 "\"")))::$3='(org-sbe spending (c (concat "\"" (org-babel-trim $1) "\""))) > > You need to swap "concat" and "org-babel-trim" like this: > >> #+TBLFM: $2='(org-sbe spending (c (concat "\"" $1 "\"")))::$3='(org-sbe spending (c (org-babel-trim (concat "\"" $1 "\"")))) > > Otherwise `org-babel-trim' act upon something that is not a string. Ah, thanks, this is good to know. > Btw, org-trim is enough here. OK, I've replaced it in other places where I was using it. Thanks again, Alan