From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: Re: babel result chain outdated/inconsistent using var Date: Thu, 07 Apr 2016 11:22:35 +0200 Message-ID: <877fg9zzzzrcx0@me.localhost.invalid> References: <87k2kbzzzzrlna@me.localhost.invalid> <87zit6c2y6.fsf@nicolasgoaziou.fr> <877fgazzzzsw8d@me.localhost.invalid> <87inzu7d2l.fsf@nicolasgoaziou.fr> <87k2k9zzzzrg5a@me.localhost.invalid> <87a8l594zw.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao6Ic-0001PR-1W for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 05:32:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ao6IY-0002ZS-Rc for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 05:32:25 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:42504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ao6IY-0002YO-L3 for emacs-orgmode@gnu.org; Thu, 07 Apr 2016 05:32:22 -0400 In-Reply-To: <87a8l594zw.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 07 Apr 2016 10:50:59 +0200") 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: Nicolas Goaziou Cc: Org-mode On Thu, Apr 07 2016, Nicolas Goaziou wrote: > Hello, > > Daniele Pizzolli writes: > >> #+NAME: pid-result >> #+RESULTS: pid >> #+NAME: echo-pid >> #+BEGIN_SRC shell :var DATA=pid-result :results value >> printf '%s' "${DATA}" #+END_SRC >> >> #+RESULTS: echo-pid > > You are giving two names to the block, which is not possible. Hello, Sorry for the confusion, I deleted one line more than the result ones. I guess a new line or a comment or a text is enough to separate the blocks. > I don't know what you are trying to do here but you seem to confuse > blocks with their results. They can be named independently. I copied your example without the results, here is the updated version, and even with a comment between the block produces the same error `(error "Reference `pid-result' not found in this buffer")' after calling `org-babel-execute-buffer' #+NAME: pid #+BEGIN_SRC shell :results value :cache no printf '%s' "${$}" #+END_SRC #+NAME: pid-result #+RESULTS: pid # Some comment is required here to separate blocks, but it does not # work either #+NAME: echo-pid #+BEGIN_SRC shell :var DATA=pid-result :results value printf '%s' "${DATA}" #+END_SRC #+RESULTS: echo-pid Do I am missing something else? Thanks again for your assistance. Daniele