Thanks Miguel,
On 2014-01-06, 19:27, Miguel Ruiz wrote:

#+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs

This magic line does the trick.

I created a patch for this, attached. I tried to follow the instructions, but since this is the first time, please be patient if something went wrong.

Cheers,  Christian

--
Christian Wittern, Kyoto

>From 08b07bbdd88bd78dd880a726f875ac167d4e2597 Mon Sep 17 00:00:00 2001
From: Chris Wittern <chris@mbp3>
Date: Mon, 6 Jan 2014 20:57:48 +0900
Subject: [PATCH] Adopted the fibonacci example to Org 8.x syntax

---
 org-contrib/babel/intro.org | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/org-contrib/babel/intro.org b/org-contrib/babel/intro.org
index 88eefc9..99a25a2 100644
--- a/org-contrib/babel/intro.org
+++ b/org-contrib/babel/intro.org
@@ -498,7 +498,7 @@ Now we use the source block:
 
      Here is the Org-mode table that is passed to =fibonacci-seq=:
 
-#+tblname: fibonacci-inputs
+#+name: fibonacci-inputs
 | 1 | 2 | 3 | 4 |  5 |  6 |  7 |  8 |  9 | 10 |
 | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
 
@@ -508,8 +508,8 @@ The table looks like this in the Org-mode buffer:
 : | 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 |
 
 The [[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source 
code:
-#+name: fibonacci-seq(fib-inputs=fibonacci-inputs)
-#+begin_src emacs-lisp
+#+name: fibonacci-seq
+#+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs 
   (defun fibonacci (n)
     (if (or (= n 0) (= n 1))
         n
@@ -520,8 +520,8 @@ The 
[[http://www.gnu.org/software/emacs/manual/elisp.html][Emacs Lisp]] source c
 #+end_src
 
 In the Org-mode buffer the function looks like this:
-: #+name: fibonacci-seq(fib-inputs=fibonacci-inputs)
-: #+begin_src emacs-lisp
+: #+name: fibonacci-seq
+: #+begin_src emacs-lisp :var fib-inputs=fibonacci-inputs 
 :   (defun fibonacci (n)
 :     (if (or (= n 0) (= n 1))
 :         n
-- 
1.8.3.4 (Apple Git-47)

Reply via email to