emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Emacs-orgmode] org-archive-done


From: Daniel J. Sinder
Subject: Re: [Emacs-orgmode] org-archive-done
Date: Thu, 15 Jun 2006 16:18:31 -0700
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

address@hidden 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




reply via email to

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