From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: cleaning all the #+results from an org document
Date: Fri, 29 Jul 2011 09:48:24 +0200 [thread overview]
Message-ID: <80aabx5xyv.fsf@somewhere.org> (raw)
In-Reply-To: 871uxadk3v.fsf@gmail.com
Hi Eric,
Eric Schulte wrote:
> Ista Zahn <izahn-7lguHJXwfyo6QsK68V2XfZVzexx5G7lz@public.gmane.org> writes:
>
>> On Thu, Jul 28, 2011 at 8:59 AM, Stephen Eglen
>> <S.J.Eglen-S7bItITd6I5K/gkPnarB6Q@public.gmane.org> 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 any time by executing the block again.
>>>> c) to delete all the old results and start "fresh"
>>
>> +1 for c. I often work with R objects that are simply too large to
>> store in org tables, so I use babel caching + session + write / load R
>> data files from disk. This works, but it becomes easy to get to an
>> inconsistent state, and I would like to be able to delete the results
>> blocks and run the whole thing fresh.
>
> You could try evaluating the following with "M-x :" in an Org-mode
> buffer. If this works well then I'll give it its own function name and
> key shortcut (key combo suggestions welcome).
>
> #+begin_src emacs-lisp
> (org-babel-map-src-blocks nil (org-babel-remove-result))
> #+end_src
On the file I took for testing, this works OK.
Regarding a key binding, looking at =C-c C-v h=, this is already quite full.
Though, =k= is free, and could be used for "killing the results".
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2011-07-29 7:48 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
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 [this message]
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=80aabx5xyv.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).