From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: "clearing" the state of an org-mode subtree Date: Sun, 11 Oct 2009 08:36:11 -0400 Message-ID: <87fx9qw1j8.fsf@gollum.intra.norang.ca> References: <4ACFAB1B.7010604@sift.info> <1f38ae890910091643r611e0cadlbe52727c30d6b9f6@mail.gmail.com> <4AD0C8CF.5080106@sift.info> <877hv24607.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mwxes-00020N-BZ for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 08:36:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mwxeo-0001zS-Nm for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 08:36:17 -0400 Received: from [199.232.76.173] (port=44359 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwxeo-0001zP-HQ for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 08:36:14 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:65240) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mwxeo-0003cD-8T for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 08:36:14 -0400 In-Reply-To: <877hv24607.fsf@gmail.com> (Paul Mead's message of "Sun\, 11 Oct 2009 10\:47\:04 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Paul Mead Cc: emacs-orgmode@gnu.org Paul Mead writes: > Robert Goldman writes: > >> 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, > > Have you thought about using yasnippet? I have a repeating set of TODOs > in a particular order that I have to do every month. Rather than reusing > the old structure, I just insert it again from a snippet. That way I > also have all my notes from last month too. Or copy the subtree _before_ you fill it in with details. Make a repeating task that is just to copy the subtree at the appropriate time so the subtree is available for the repeat after this one, and then proceed to use one of the copies for the current task iteration. HTH, Bernt