From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: patch for worg (was:Re: help with porting babel example on worg to latest version) Date: Mon, 06 Jan 2014 21:00:52 +0900 Message-ID: <52CA9AF4.5080807@gmail.com> References: <52CA5529.2050705@gmail.com> <1389004050.53626.YahooMailNeo@web171302.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000008000709050508000302" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W08rq-0001uJ-4e for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 07:01:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W08rk-0004zu-Hv for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 07:01:14 -0500 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:35740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W08rk-0004zf-A2 for emacs-orgmode@gnu.org; Mon, 06 Jan 2014 07:01:08 -0500 Received: by mail-pd0-f171.google.com with SMTP id z10so18002923pdj.16 for ; Mon, 06 Jan 2014 04:01:03 -0800 (PST) In-Reply-To: <1389004050.53626.YahooMailNeo@web171302.mail.ir2.yahoo.com> 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: Org Mode Mailing List Cc: Miguel Ruiz This is a multi-part message in MIME format. --------------000008000709050508000302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 --------------000008000709050508000302 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-Adopted-the-fibonacci-example-to-Org-8.x-syntax.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Adopted-the-fibonacci-example-to-Org-8.x-syntax.patch" >From 08b07bbdd88bd78dd880a726f875ac167d4e2597 Mon Sep 17 00:00:00 2001 From: Chris Wittern 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) --------------000008000709050508000302--