From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: New variable request: org-archive-todo-only Date: Tue, 11 Dec 2007 15:35:22 +0100 Message-ID: <878x41fget.fsf@bzg.ath.cx> References: <475D9253.6040707@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J26Cv-0001hc-Js for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 09:35:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J26Cu-0001fT-8N for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 09:35:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J26Ct-0001fD-Sj for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 09:35:35 -0500 Received: from nf-out-0910.google.com ([64.233.182.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J26Ct-0002Rh-Rj for emacs-orgmode@gnu.org; Tue, 11 Dec 2007 09:35:36 -0500 Received: by nf-out-0910.google.com with SMTP id f5so1455417nfh for ; Tue, 11 Dec 2007 06:35:33 -0800 (PST) In-Reply-To: <475D9253.6040707@gmail.com> (Wanrong Lin's message of "Mon, 10 Dec 2007 14:24:03 -0500") 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: Wanrong Lin Cc: emacs-orgmode@gnu.org 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') -- Bastien