[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: "clearing" the state of an org-mode subtree
From: |
Gregory J. Grubbs |
Subject: |
[Orgmode] Re: "clearing" the state of an org-mode subtree |
Date: |
Sun, 11 Oct 2009 09:11:55 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Robert Goldman <address@hidden> 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---
- Re: [Orgmode] "clearing" the state of an org-mode subtree, (continued)
- Re: [Orgmode] "clearing" the state of an org-mode subtree, Andrew Stribblehill, 2009/10/09
- Re: [Orgmode] "clearing" the state of an org-mode subtree, Darlan Cavalcante Moreira, 2009/10/10
- Re: [Orgmode] "clearing" the state of an org-mode subtree, Robert Goldman, 2009/10/10
- [Orgmode] Re: "clearing" the state of an org-mode subtree, Paul Mead, 2009/10/11
- [Orgmode] Re: "clearing" the state of an org-mode subtree, Bernt Hansen, 2009/10/11
- [Orgmode] Re: "clearing" the state of an org-mode subtree, Robert P . Goldman, 2009/10/11
- [Orgmode] Re: "clearing" the state of an org-mode subtree, Bernt Hansen, 2009/10/11
- Re: [Orgmode] Re: "clearing" the state of an org-mode subtree, Nick Dokos, 2009/10/11
- Re: [Orgmode] Re: "clearing" the state of an org-mode subtree, Robert Goldman, 2009/10/12
- Re: [Orgmode] Re: "clearing" the state of an org-mode subtree, Carsten Dominik, 2009/10/12
- [Orgmode] Re: "clearing" the state of an org-mode subtree,
Gregory J. Grubbs <=