Re: [O] cleaning all the #+results from an org document

2011-07-29 Thread Sebastien Vauban
Hi Eric, Eric Schulte wrote: Ista Zahn iz...@psych.rochester.edu writes: On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: Thanks Torsten, you've expressed it elegantly! a) send it to someone without the results (to let him create his own) b) archive them

Re: [O] cleaning all the #+results from an org document

2011-07-29 Thread Sebastien Vauban
Hi Eric, Sebastien Vauban wrote: Eric Schulte wrote: Ista Zahn iz...@psych.rochester.edu writes: On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: Thanks Torsten, you've expressed it elegantly! c) to delete all the old results and start fresh +1 for c. I

Re: [O] cleaning all the #+results from an org document

2011-07-29 Thread Torsten Wagner
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

Re: [O] cleaning all the #+results from an org document

2011-07-29 Thread Eric Schulte
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, Sebastien Vauban wrote: Eric Schulte wrote: Ista Zahn iz...@psych.rochester.edu writes: On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: Thanks Torsten, you've expressed it elegantly! c) to

Re: [O] cleaning all the #+results from an org document

2011-07-29 Thread Eric Schulte
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

[O] cleaning all the #+results from an org document

2011-07-28 Thread Stephen Eglen
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

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread suvayu ali
Hi Stephen, On Thu, Jul 28, 2011 at 10:31 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk 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,

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Stephen Eglen
If you don't want the results to be produced at all, you can always use the babel header option[1] :results silent. Thanks Suvayu, I'm gradually learning about all the various ways output can be exported vs shown in the org buffer. Am I right in understanding that :results silent just

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Sebastien Vauban
Hi Suvayu and Stephen, suvayu ali wrote: #+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. If you don't want the results to be produced at all, you

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread suvayu ali
Hi Stephen, On Thu, Jul 28, 2011 at 1:41 PM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: If you don't want the results to be produced at all, you can always use the babel header option[1] :results silent. Thanks Suvayu, I'm gradually learning about all the various ways output can be

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Torsten Wagner
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

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Stephen Eglen
Thanks Torsten, you've expressed it elegantly! 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

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Ista Zahn
On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: Thanks Torsten, you've expressed it elegantly! 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

Re: [O] cleaning all the #+results from an org document

2011-07-28 Thread Eric Schulte
Ista Zahn iz...@psych.rochester.edu writes: On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen s.j.eg...@damtp.cam.ac.uk wrote: Thanks Torsten, you've expressed it elegantly! a) send it to someone without the results (to let him create his own) b) archive them without having possible huge