emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] "DONE" all subtasks recursively


From: Bastien
Subject: Re: [O] "DONE" all subtasks recursively
Date: Fri, 22 Jul 2011 15:52:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Bernt,

Bernt Hansen <address@hidden> writes:

> (defun bh/mark-subtree-done ()
>   (interactive)
>   (org-mark-subtree)
>   (let ((limit (point)))
>     (save-excursion
>       (exchange-point-and-mark)
>       (while (> (point) limit)
>       (org-todo "DONE")
>       (outline-previous-visible-heading 1))
>       (org-todo "DONE"))))
>
> Then M-x bh/mark-subtree-done.

Thanks for this -- I added an entry in Worg/org-hacks.html

Best,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]