From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: [org-babel] Problem using result of code block with eval no Date: Mon, 20 Jul 2015 18:36:53 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHKcD-0000nt-Qr for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 19:36:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHKcA-000737-Q5 for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 19:36:57 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:38636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHKcA-00071O-IY for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 19:36:54 -0400 Received: by wibxm9 with SMTP id xm9so40324694wib.1 for ; Mon, 20 Jul 2015 16:36:53 -0700 (PDT) In-Reply-To: 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: Francesco Pizzolante Cc: mailing-list-org-mode Francesco how did this end up? I just tried it and couldn't reproduce that behavior. Org-Mode warned me that you can't evaluate block-id table2 so there is no result or value for the last heading. Grant Rettke -- gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates =E2=80=9CAll creativity is an extended form of a joke.=E2=80=9D --Kay ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Wed, Apr 8, 2015 at 4:15 AM, Francesco Pizzolante wrote: > Hi, > > I have an issue when I want to use the result of a code block which > I executed manually (C-c C-v C-e) and then marked with ':eval no'. > > Here's what happen when I evaluate the following ECM with C-c C-v C-b: > > - the Result1 code block uses the table1 result as input and returns the > expected output; > > - the Result2 code block which should use the table2 result as input, > gets "nil" instead -- which seems wrong. > > Any help is welcome. > > Best regards, > Francesco > > --8<---------------cut here---------------start------------->8--- > * Table1 > > #+name: table1 > #+begin_src emacs-lisp > (setq my-table (quote ((0 "first") (1 "second") ("A" "third")))) > #+end_src > > #+results: table1 > | 0 | first | > | 1 | second | > | A | third | > > * Result1 > > #+header: :var data=3Dtable1 > #+begin_src emacs-lisp > data > #+end_src > > #+results: > | 0 | first | > | 1 | second | > | A | third | > > * Table2 > > #+name: table2 > #+begin_src emacs-lisp :eval no > (setq my-table (quote ((0 "first") (1 "second") ("A" "third")))) > #+end_src > > #+results: table2 > | 0 | first | > | 1 | second | > | A | third | > > * Result2 > > #+header: :var data=3Dtable2 > #+begin_src emacs-lisp > data > #+end_src > > #+results: > : nil > --8<---------------cut here---------------end--------------->8--- >