From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: Re: cleaning all the #+results from an org document Date: Fri, 29 Jul 2011 23:42:57 +0900 Message-ID: <4E32C6F1.2060503@gmail.com> References: <21734.1311841912@maps> <4E3154FA.5000606@gmail.com> <32216.1311857987@maps> <871uxadk3v.fsf@gmail.com> 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]:44199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoHG-0000rw-Vd for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 10:43:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmoHG-0007iH-0X for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 10:43:02 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:53950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmoHF-0007i9-U9 for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 10:43:01 -0400 Received: by yia13 with SMTP id 13so3077148yia.0 for ; Fri, 29 Jul 2011 07:43:00 -0700 (PDT) In-Reply-To: <871uxadk3v.fsf@gmail.com> 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: Eric Schulte Cc: Ista Zahn , Stephen Eglen , emacs-orgmode@gnu.org Hi Eric, On 07/29/2011 08:04 AM, Eric Schulte wrote: > #+begin_src emacs-lisp > (org-babel-map-src-blocks nil (org-babel-remove-result)) > #+end_src it works on my java stuff, but for some reason it creates a result by itself in my system. E.g., #+results: : 508 There is another glitch... The additional empty lines created by execution of a code block to create the result section are not removed. Going forth and back creates more and more empty lines. #+begin_src sh echo "No more empty rows" #+end_src * I am squeezed directly under the code block execute it #+begin_src sh echo "No more empty rows" #+end_src #+results: : No more empty rows * I am squeezed directly under the code block Remove the result with the given function #+begin_src sh echo "No more empty rows" #+end_src * I am squeezed directly under the code block Execute the code again #+begin_src sh echo "No more empty rows" #+end_src #+results: : No more empty rows * I am squeezed directly under the code block As for the key I like the C-c C-v k idea What do you think about the (optional) timestamps idea for results ... might be great for archiving. Open a file a year later and still be able to see when you executed the blocks the last time might be helpful in terms of "Ohhh yeah this was before I fixed this terrible bug"... Greetings Totti