[emacs-berlin] ORG mode archive all DONE tasks within current org file

Andreas Tiefenthaler at at an-ti.eu
Tue May 20 10:13:32 CEST 2014



Hey I just stumbled over a nice function to archive all DONE tasks in an
org file[1].

(defun at-org-archive-done-tasks ()
  (interactive)
  (org-map-entries 'org-archive-subtree "/DONE" 'file))


It works quite well, although I need more attempts to actually get all
DONE items archived. Anyone has an idea why that could be? I don't
really get any error messages.


Andy


[1]: https://stackoverflow.com/questions/6997387/how-to-archive-all-the-done-tasks-using-a-single-command?answertab=votes#tab-top


More information about the emacs-berlin mailing list