Re: [O] Need help understanding how to limit a function to a tree

2018-03-01 Thread mediapathic steen
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

Re: [O] Need help understanding how to limit a function to a tree

2018-02-28 Thread John Kitchin
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 -

[O] Need help understanding how to limit a function to a tree

2018-02-28 Thread mediapathic steen
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