From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wanrong Lin Subject: Re: New variable request: org-archive-todo-only Date: Tue, 11 Dec 2007 23:30:41 -0500 Message-ID: <475F63F1.9030204@gmail.com> References: <475D9253.6040707@gmail.com> <878x41fget.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2JFB-0005lm-EU for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 23:30:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2JF8-0005jf-SV for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 23:30:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2JF8-0005jZ-O5 for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 23:30:46 -0500 Received: from wr-out-0506.google.com ([64.233.184.235]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2JF8-0006E2-N3 for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 23:30:46 -0500 Received: by wr-out-0506.google.com with SMTP id 37so30536wra.12 for ; Tue, 11 Dec 2007 20:30:45 -0800 (PST) In-Reply-To: <878x41fget.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien wrote: > Wanrong Lin 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') > > This certainly will cover my own needs and is more flexible (which is one major reason why I use org-mode) than what I proposed. Thank you and look forward to having it in the future releases. Wanrong