From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregory@dynapse.com (Gregory J. Grubbs) Subject: Re: "clearing" the state of an org-mode subtree Date: Sun, 11 Oct 2009 09:11:55 -0600 Message-ID: <87d44u6k3o.fsf@dynapse.com> References: <4ACFAB1B.7010604@sift.info> <1f38ae890910091643r611e0cadlbe52727c30d6b9f6@mail.gmail.com> <4AD0C8CF.5080106@sift.info> 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 1Mx063-0005UI-Q1 for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 11:12:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mx05z-0005Te-21 for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 11:12:31 -0400 Received: from [199.232.76.173] (port=39394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mx05y-0005TT-Pe for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 11:12:26 -0400 Received: from lo.gmane.org ([80.91.229.12]:32822) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mx05y-0001bJ-Ef for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 11:12:26 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mx05v-0006fM-Ef for emacs-orgmode@gnu.org; Sun, 11 Oct 2009 17:12:23 +0200 Received: from 76.74.124.198 ([76.74.124.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Oct 2009 17:12:23 +0200 Received: from gregory by 76.74.124.198 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Oct 2009 17:12:23 +0200 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: emacs-orgmode@gnu.org Robert Goldman writes: > 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. I think automating a task that annoys you is worth the trouble. You could at least start with something like the following, and flesh it out to include drawer notes and check lists. --8<---------------cut here---------------start------------->8--- (defun gjg/org-reset-todo () "reset any task from point onward with a TODO keyword to initial TODO state. Show all trees you want to reset before running this command: hidden trees will not be touched" (interactive) (save-excursion (while (not (eobp)) (outline-next-visible-heading 1) (if (org-get-todo-state) (org-todo "TODO"))))) --8<---------------cut here---------------end--------------->8---