From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: babel result chain outdated/inconsistent using var Date: Wed, 06 Apr 2016 14:54:41 +0200 Message-ID: <87zit6c2y6.fsf@nicolasgoaziou.fr> References: <87k2kbzzzzrlna@me.localhost.invalid> 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]:58202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmwq-00077Y-F8 for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:52:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1anmwn-00012n-8k for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:52:40 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1anmwn-00012f-24 for emacs-orgmode@gnu.org; Wed, 06 Apr 2016 08:52:37 -0400 In-Reply-To: <87k2kbzzzzrlna@me.localhost.invalid> (Daniele Pizzolli's message of "Wed, 06 Apr 2016 14:01:45 +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: Daniele Pizzolli Cc: Org-mode Hello, Daniele Pizzolli writes: > is possible to update the =E2=80=9C#+RESULTS: pid=E2=80=9D when the block= =E2=80=9C#+NAME: > echo-pid=E2=80=9D is evaluated in the following snippet? Without `org-babel-execute-buffer', I don't think so. > This will lead to a consistent document generation with =E2=80=9CM-x > org-babel-execute-buffer=E2=80=9D or by hitting =E2=80=9CC-c C-c=E2=80=9D= on =E2=80=9C#+NAME: > echo-pid=E2=80=9D. I'm not convinced that this behaviour should be enforced. If I C-c C-c on a block, I expect only the results of the block to be updated, not some other part of the document I am editing.=20 Also, what if the other block is in another document? I don't think it should be updated either. What is the harm in using `org-babel-execute-buffer' for your use case? Regards, --=20 Nicolas Goaziou