From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: "clearing" the state of an org-mode subtree Date: Sat, 10 Oct 2009 12:47:59 -0500 Message-ID: <4AD0C8CF.5080106@sift.info> References: <4ACFAB1B.7010604@sift.info> <1f38ae890910091643r611e0cadlbe52727c30d6b9f6@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mwg3H-0002Cv-DY for emacs-orgmode@gnu.org; Sat, 10 Oct 2009 13:48:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mwg3B-00026s-VM for emacs-orgmode@gnu.org; Sat, 10 Oct 2009 13:48:18 -0400 Received: from [199.232.76.173] (port=41997 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mwg3B-00026c-Oy for emacs-orgmode@gnu.org; Sat, 10 Oct 2009 13:48:13 -0400 Received: from outbound-mail-135.bluehost.com ([67.222.39.25]:58579) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Mwg3B-0007yx-66 for emacs-orgmode@gnu.org; Sat, 10 Oct 2009 13:48:13 -0400 In-Reply-To: <1f38ae890910091643r611e0cadlbe52727c30d6b9f6@mail.gmail.com> 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: Andrew Stribblehill Cc: Org Mode 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 : >> 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 >>