From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: [ob, bug?] org-sbe Date: Tue, 30 Sep 2014 02:05:10 +0000 (UTC) Message-ID: References: <87bnpyjicp.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYmoo-0007kq-AL for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 22:05:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYmoh-0002YE-Qm for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 22:05:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:33595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYmoh-0002Wz-Ki for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 22:05:27 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYmob-00073t-Q2 for emacs-orgmode@gnu.org; Tue, 30 Sep 2014 04:05:21 +0200 Received: from 137.110.37.92 ([137.110.37.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 04:05:21 +0200 Received: from ccberry by 137.110.37.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 30 Sep 2014 04:05:21 +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: emacs-orgmode@gnu.org Rasmus gmx.us> writes: > > Hi, > > I used sbe a long time ago. Apparently it has been renamed to > org-spe. > > I was unable get org-spe working as a dumb currency converter, so I > tried the example in the top of ob-table.el. However, I'm also unable > to get this example working, even starting from emacs -q. . . > > This is the suggested test in ob-table.el: > > #+begin_src emacs-lisp :results silent > (defun fibbd (n) (if (< n 2) 1 (+ (fibbd (- n 1)) (fibbd (- n 2))))) > #+end_src > > #+name: fibbd > #+begin_src emacs-lisp :var n=2 :results silent > (fibbd n) > #+end_src > > | original | fibbd | > |----------+--------| > | 0 | #ERROR | > | 1 | #ERROR | > | 2 | #ERROR | > | 3 | #ERROR | > | 4 | #ERROR | > | 5 | #ERROR | > | 6 | #ERROR | > | 7 | #ERROR | > | 8 | #ERROR | > | 9 | #ERROR | > #+TBLFM: $2='(org-sbe 'fibbd (n $1)) > > Did the syntax of org-sbe change or am just missing something obvious here? unquote the fibbd or double quote it --8<---------------cut here---------------start------------->8--- | original | fibbd | |----------+-------| | 0 | 1 | | 1 | 1 | | 2 | 2 | | 3 | 3 | | 4 | 5 | | 5 | 8 | | 6 | 13 | | 7 | 21 | | 8 | 34 | | 9 | 55 | #+TBLFM: $2='(org-sbe fibbd (n $1)) --8<---------------cut here---------------end--------------->8--- or --8<---------------cut here---------------start------------->8--- #+TBLFM: $2='(org-sbe "fibbd" (n $1)) --8<---------------cut here---------------end--------------->8--- HTH, Chuck