[EMAIL PROTECTED] wrote:
> How about a function org-archive-done, that archives any tree in the
> buffer labelled DONE?
> 
> One might refine this to archive trees absolutely done, so that---even
> when a heading is labelled DONE---it looks to its subtrees to check
> whether they have no label which states the opposite.
> 
> Also, I think it only nice/useful for top-level headings, not below.
> 

I like the idea proposed by Niels, but I'd want to be able to call
it for a tree too, not just the top-level of a whole file.  In other
words, I'd like to prune any chosen tree to archive DONE items under
it.  Perhaps an example is best...

--- .org file before archiving ---
* Tasks
** TODO Task 1
** DONE Task 2
** TODO Project A
*** TODO Task A1
*** DONE Task A2
** DONE Project B
*** DONE Task B1
*** DONE Task B2

--- .org file after archive of top-level tree ---
* Tasks
** TODO Task 1
** TODO Project A
*** TODO Task A1
*** DONE Task A2

--- _archive file after archive of top-level tree ---
* Tasks
** DONE Task 2
** DONE Project B
*** DONE Task B1
*** DONE Task B2

Dan


_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to