From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: cleaning all the #+results from an org document Date: Fri, 29 Jul 2011 10:40:59 -0600 Message-ID: <8739hpniiz.fsf@gmail.com> References: <21734.1311841912@maps> <4E3154FA.5000606@gmail.com> <32216.1311857987@maps> <871uxadk3v.fsf@gmail.com> <4E32C6F1.2060503@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmqB0-0001MZ-6V for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 12:44:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmqAy-0006xg-S6 for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 12:44:42 -0400 Received: from mail-pz0-f49.google.com ([209.85.210.49]:37428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmqAy-0006uH-NK for emacs-orgmode@gnu.org; Fri, 29 Jul 2011 12:44:40 -0400 Received: by mail-pz0-f49.google.com with SMTP id 33so5717923pzk.8 for ; Fri, 29 Jul 2011 09:44:40 -0700 (PDT) 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: Torsten Wagner Cc: Ista Zahn , Stephen Eglen , emacs-orgmode@gnu.org > > 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 > Yes, this is something that seems to need fine tuning from time to time, as new result and code block types are added and removed. I've made a note to take a look at this. > > > As for the key I like the C-c C-v k idea > great, applied. > > > 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"... > I do think this is a good idea. I don't have the time to implement this now as it will involve some nontrivial reworking of the syntax of results lines, but I'll add it to my stack. Patches welcome :). Thanks -- Eric > > > Greetings > > Totti -- Eric Schulte http://cs.unm.edu/~eschulte/