Wanrong Lin <[EMAIL PROTECTED]> writes:
> In my org file I have a mix of "actionable" items (TODO items) and
> informative items (notes, references and etc). Normally I only archive
> TODO items when they are done, and don't archive informative items
> (since most of them have some long-term value). So, can we add a new
> variable to "org-archive-todo-only" to control the behavior of following
> functions:
>
> 1. org-archive-subtree
> 2. org-archive-all-done
Good idea!
Maybe this could be more general like this:
(setq org-archive-maybe '((plain . never)
(todo . confirm)
(done . always)))
where "plain" refers to informative entries (no TODO keyword), "todo"
refers to entries with a TODO keyword, "done" refers to entries with
a done-state TODO keyword.
This would apply for both org-archive-subtree and org-archive-all-done.
Maybe we could refine it a bit and have:
#+SEQ_TODO: TODO(t) WAITING(w@) SOMEDAY(s$) | DONE(d) CANCELED(c@)
^
where the "$" sign means: always archive this todo keyword without
asking (i.e. override the value or `org-archive-maybe')
--
Bastien
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode