emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thierry Banel <tbanelwebmin@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Problem using org-sbe
Date: Sun, 21 Feb 2016 21:10:42 +0100	[thread overview]
Message-ID: <56CA19C2.8040801@free.fr> (raw)
In-Reply-To: <CC82093A-F5B4-4305-ABB0-7F96D187DD2C@gmail.com>

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	other threads:[~2016-02-21 20:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21  5:24 Problem using org-sbe Bachir El Khadir
2016-02-21 20:10 ` Thierry Banel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CA19C2.8040801@free.fr \
    --to=tbanelwebmin@free.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).