[Top][All Lists]

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

Re: [Orgmode] New variable request: org-archive-todo-only

From: Bastien
Subject: Re: [Orgmode] New variable request: org-archive-todo-only
Date: Tue, 11 Dec 2007 15:35:22 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Wanrong Lin <address@hidden> 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:


where the "$" sign means: always archive this todo keyword without
asking (i.e. override the value or `org-archive-maybe')


reply via email to

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