From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Multiple (identical) RESULTS blocks of one code block? Date: Mon, 09 Mar 2015 14:10:28 +0100 Message-ID: <86ioea2u63.fsf@example.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org John Kitchin wrote: > Rainer M Krug writes: >> >> Consider the following: >> >> * The calculation >> #+NAME: testcode :exports both >> #+begin_src R :session test >> runif(10) >> #+end_src >> >> >> * summary of the results >> First time >> #+RESULTS: testcode :exports both >> | 0.772744940361008 | >> | 0.170518629485741 | >> | 0.0833237133920193 | >> | 0.149035625392571 | >> | 0.698798568220809 | >> | 0.627075897762552 | >> | 0.177144371205941 | >> | 0.0476319056469947 | >> | 0.289851602632552 | >> | 0.0296813279855996 | >> >> * and another >> testthingy >> #+RESULTS: testcode :exports both >> >> If I update the calculation, the first results block is updated, but >> not the second one. I would like to have two RESULTS blocks which >> are both updated when the code block is evaluated. >> >> Is this possible? > > I don't believe this is possible out of the box. The first RESULTS block > from the beginning of the buffer will be updated, and not the others. > > You might be able to use a hook function to do this [...]. Another solution is to use the `echo' [1] code block to copy whatever contents where you want it... Best regards, Seb [1] http://orgmode.org/cgit.cgi/org-mode.git/plain/doc/library-of-babel.org -- Sebastien Vauban