From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: [babel] subtree evaluation with results outside the subtree Date: Wed, 05 Sep 2012 10:35:45 +0200 Message-ID: <87sjawc1em.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9B5p-00077v-MZ for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 04:36:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9B5c-0007xn-5K for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 04:36:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:59475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9B5b-0007xc-Uf for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 04:36:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T9B5b-0000ps-5u for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 10:35:59 +0200 Received: from genepi110.genepi.med.uni-goettingen.de ([134.76.140.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2012 10:35:59 +0200 Received: from andreas.leha by genepi110.genepi.med.uni-goettingen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Sep 2012 10:35: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: emacs-orgmode@gnu.org Hi all, I have the following question. Consider the following simple org file #+begin_org * Subtree to eval (with C-c C-v s) #+name: some_test #+begin_src R 5+1 #+end_src * another subtree containing the result #+results: some_test : 6 #+end_org (a) When I evaluate the source block interactively (C-c C-c) the existing results get updated. (b) When I evaluate the subtree containing the source block, on the other hand, a new result block is created. While the behaviour in (b) is understandable, I'd like (b) to behave like (a). So, is there a way I can evaluate all source blocks in a subtree, but have their result blocks updated even if they are not located in that subtree? Many thanks, Andreas