From: Robert Goldman <rpgoldman@sift.info>
To: Andrew Stribblehill <ads@wompom.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: "clearing" the state of an org-mode subtree
Date: Sat, 10 Oct 2009 12:47:59 -0500 [thread overview]
Message-ID: <4AD0C8CF.5080106@sift.info> (raw)
In-Reply-To: <1f38ae890910091643r611e0cadlbe52727c30d6b9f6@mail.gmail.com>
Andrew Stribblehill wrote:
> org-mode files are plain text. M-% to do a replacement: once you've
> entered your search term and its replacement, hit ! to replace all
> without question.
Yes, one can do this, but note that it's not entirely a no-brainer. You
need to:
1. clear all the check boxes and then recompute all checkbox counts in
the region. [this isn't a simple tag replacement]
2. replace all non-TODO keywords with TODO. This is a replacement, but
not a simple one to do with M-%
3. Wipe out all of the notes that were added with state changes.
Again, this can be done with a replacement command, but it's not a
trivial one.
This is one of those cases where automating a task will not pay back the
investment (at least not to me, individually), so I think I'd better
just do it by hand.
Thanks, everyone,
r
>
> 2009/10/9 Robert Goldman <rpgoldman@sift.info>:
>> I'm at about my one year anniversary using Org-mode, and I have a bit of
>> an odd question. Last year, I made a subtree that was a project for
>> getting ready for winter (I live in Minnesota, which has harsh winters).
>>
>> I worked my way through that list, and now I'd like to do the whole
>> thing over again.
>>
>> So I'd like to copy the subtree (this I believe I can easily do), and
>> then clear it. That is, I'd like to reset all the TODOs from DONE to
>> TODO, and clear all the check boxes.
>>
>> This seems like a really odd thing to do, so there probably isn't
>> automation for it, but before I go groveling over it by hand, I thought
>> I'd ask.
>>
>> thanks!
>> R
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
next prev parent reply other threads:[~2009-10-10 17:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 21:28 "clearing" the state of an org-mode subtree Robert Goldman
2009-10-09 23:43 ` Andrew Stribblehill
2009-10-10 17:23 ` Darlan Cavalcante Moreira
2009-10-10 17:47 ` Robert Goldman [this message]
2009-10-11 9:47 ` Paul Mead
2009-10-11 12:36 ` Bernt Hansen
2009-10-11 16:10 ` Robert P. Goldman
2009-10-11 16:46 ` Bernt Hansen
2009-10-11 22:21 ` Nick Dokos
2009-10-12 12:39 ` Robert Goldman
2009-10-12 12:46 ` Carsten Dominik
2009-10-11 15:11 ` Gregory J. Grubbs
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AD0C8CF.5080106@sift.info \
--to=rpgoldman@sift.info \
--cc=ads@wompom.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.