From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] subtree evaluation with results outside the subtree Date: Wed, 05 Sep 2012 12:03:33 -0600 Message-ID: <87ligoqr2e.fsf@gmx.com> References: <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]:51887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9KFt-0007yk-0v for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 14:23:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9KFs-0007kw-3L for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 14:23:12 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:34553) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T9KFr-0007ks-Rv for emacs-orgmode@gnu.org; Wed, 05 Sep 2012 14:23:12 -0400 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: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > 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 > > Hi Andreas, I've just pushed up a patch which widens any buffer restrictions when inserting results. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte