From: gregory@dynapse.com (Gregory J. Grubbs)
To: emacs-orgmode@gnu.org
Subject: Re: "clearing" the state of an org-mode subtree
Date: Sun, 11 Oct 2009 09:11:55 -0600 [thread overview]
Message-ID: <87d44u6k3o.fsf@dynapse.com> (raw)
In-Reply-To: 4AD0C8CF.5080106@sift.info
Robert Goldman <rpgoldman@sift.info> 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---
prev parent reply other threads:[~2009-10-11 15:12 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
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 [this message]
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=87d44u6k3o.fsf@dynapse.com \
--to=gregory@dynapse.com \
--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.