From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Conditionally archiving to an archive file or archive tree? Date: Thu, 10 Nov 2011 10:12:39 -0600 Message-ID: <878vnoufbc.fsf@grumps.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROXDf-0001Pe-R4 for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:11:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROXDe-0004cD-Aw for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:11:15 -0500 Received: from li28-75.members.linode.com ([75.127.72.75]:58079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROXDe-0004bs-83 for emacs-orgmode@gnu.org; Thu, 10 Nov 2011 11:11:14 -0500 Received: from grumps.lan (localhost [127.0.0.1]) by li28-75.members.linode.com (Postfix) with ESMTP id 55953C919 for ; Thu, 10 Nov 2011 16:11:12 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hiya all, Is there an easy way to conditionally archive to an archive file or archive tree? I guess I should write my own tool but often times there are builtin things and I end up rewriting tools without knowing it, so querying on that before I go ahead and write something. (Might also be good to know if this is a need of other people than just me.) Basically, imagine an orgmode file of the following structure: #+begin_src org * No archive file tree ** TODO Some task! Should archive to sub-tree ** TODO Some task! Should archive to sub-tree also! * Archive things in here to an archive file :PROPERTIES: :ARCHIVE: %s_archive::* Somethingorother :END: ** TODO Archive me to an archive file! ** TODO Also archive me to an archive file! *** TODO However not subtasks! *** DONE archiving this subtask should move to an archive subtree *** Archive :ARCHIVE: **** DONE See, like so #+end_src Is there a nice builtin way to do this, or should I write it myself? Also, if I should write it myself, would anyone else find this functionality useful? Personally, I think this is a good way of doing things to keep files from getting full of cruft but also allowing big projects full of subtrees to stay coherent as you move things out of the way. Thanks! - Chris