From: Torsten Wagner <torsten.wagner@gmail.com>
To: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: cleaning all the #+results from an org document
Date: Thu, 28 Jul 2011 21:24:26 +0900 [thread overview]
Message-ID: <4E3154FA.5000606@gmail.com> (raw)
In-Reply-To: <21734.1311841912@maps>
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
>
next prev parent reply other threads:[~2011-07-28 12:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 8:31 cleaning all the #+results from an org document Stephen Eglen
2011-07-28 9:21 ` suvayu ali
2011-07-28 11:41 ` Stephen Eglen
2011-07-28 11:58 ` suvayu ali
2011-07-28 11:41 ` Sebastien Vauban
2011-07-28 12:24 ` Torsten Wagner [this message]
2011-07-28 12:59 ` Stephen Eglen
2011-07-28 16:15 ` Ista Zahn
2011-07-28 23:04 ` Eric Schulte
2011-07-29 7:48 ` Sebastien Vauban
2011-07-29 8:15 ` Sebastien Vauban
2011-07-29 16:38 ` Eric Schulte
2011-07-29 14:42 ` Torsten Wagner
2011-07-29 16:40 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E3154FA.5000606@gmail.com \
--to=torsten.wagner@gmail.com \
--cc=S.J.Eglen@damtp.cam.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).