emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problem using org-sbe
@ 2016-02-21  5:24 Bachir El Khadir
  2016-02-21 20:10 ` Thierry Banel
  0 siblings, 1 reply; 2+ messages in thread
From: Bachir El Khadir @ 2016-02-21  5:24 UTC (permalink / raw)
  To: emacs-orgmode

 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem using org-sbe
  2016-02-21  5:24 Problem using org-sbe Bachir El Khadir
@ 2016-02-21 20:10 ` Thierry Banel
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Banel @ 2016-02-21 20:10 UTC (permalink / raw)
  To: emacs-orgmode

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
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-21 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-21  5:24 Problem using org-sbe Bachir El Khadir
2016-02-21 20:10 ` Thierry Banel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).