From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: cleaning all the #+results from an org document Date: Thu, 28 Jul 2011 21:24:26 +0900 Message-ID: <4E3154FA.5000606@gmail.com> References: <21734.1311841912@maps> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmPde-0005Rh-Or for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 08:24:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmPdd-0006Xi-Il for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 08:24:30 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:45085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmPdd-0006Xc-DP for emacs-orgmode@gnu.org; Thu, 28 Jul 2011 08:24:29 -0400 Received: by gxk23 with SMTP id 23so2081894gxk.0 for ; Thu, 28 Jul 2011 05:24:28 -0700 (PDT) In-Reply-To: <21734.1311841912@maps> 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: Stephen Eglen Cc: emacs-orgmode@gnu.org Hi, but there is one interesting aspect missing. If I want to evaluate the blocks and see the results but e.g. a) send it to someone without the results (to let him create his own) b) archive them without having possible huge amount of lines of results which can be reproduced any time by executing the block again. c) to delete all the old results and start "fresh" A function to remove all results might become handy. Sometimes I find it quite difficult to see if a source-code block execute at all and if the results are "up-to-date" or still rather old results. Sure there is the message in the mini-buffer but its quickly overlooked or removed by a key-press. Actually, I would prefer that "old" results are deleted at the very first step, then the source code block should be executed and finally results are printed again. Its simply to dangerous to overlook that some results might not be updated after all because something might went silently wrong within the execution. Another idea would be to add a timestamp making the last time of successful execution clear, which might be nice for many different other reasons. #+results: [2011-07-28 Thu 21:15] ;; huh, no seconds in org-mode ?! Greetings Totti On 07/28/2011 05:31 PM, Stephen Eglen wrote: > Is there an easy way to delete all the #+results: blocks that have been > generated as the result of running org mode blocks? e.g. If I have the > following chunk: > > #+begin_src R > round(runif(n=5, min=0, max=1), 3) > #+end_src > > #+results: > | 0.435 | > | 0.884 | > | 0.219 | > | 0.748 | > | 0.532 | > > I'd like the results table to be deleted, but not the code chunk. > > Stephen >