emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem using org-sbe


From: Thierry Banel
Subject: Re: [O] Problem using org-sbe
Date: Sun, 21 Feb 2016 21:10:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Try typing C-c C-c on the line
  (defun fibbd ...)

This will actually define fibbd.

Then update the table with C-u C-c *


Le 21/02/2016 06:24, Bachir El Khadir a écrit :
>  Hello all,
>  I am new to org-mode.  I have just installed the latest version using 
> el-get, but I am having a very annoying problem.
>  The command org-sbe doesn't seem to work.
>  Here is a minimal example that I took from the doc:
>
> #+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))
>
>  As you can see I keep getting #ERROR  
>  Am i doing something wrong?
>  Thanks a lot
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]