This worked a treat, and I learned a bit more. Thanks so much!
-- Steen
> On Feb 28, 2018, at 7:35 PM, John Kitchin wrote:
>
> You probably want this:
>
> #+BEGIN_SRC emacs-lisp
> (defun my-redo ()
> (interactive)
> (org-map-entries
>(lambda ()
> (org-todo "TODO"))
>"TODO=\"DO
You probably want this:
#+BEGIN_SRC emacs-lisp
(defun my-redo ()
(interactive)
(org-map-entries
(lambda ()
(org-todo "TODO"))
"TODO=\"DONE\"" ;; the match argument
'tree)) ;; the scope
#+END_SRC
Then call:
M-x my-redo
in the tree you want to reset.
John
-
I have a subtree that contains a daily list of things to do (which I keep as
TODOs rather than checklist form for more granular time tracking). I want to
reset all of the DONE to TODO every day when I start it. Right now I have this
piece of code I copypasted from somewhere now lost (possibly th