From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Re: Can I archive into datetree based on CLOSED date property Date: Sun, 20 Feb 2011 16:25:02 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=43947 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr6wn-0002n1-Hj for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 05:55:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr6wl-0002uU-QL for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 05:55:24 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:53160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr6wl-0002uQ-Iz for emacs-orgmode@gnu.org; Sun, 20 Feb 2011 05:55:23 -0500 Received: by wyi11 with SMTP id 11so96434wyi.0 for ; Sun, 20 Feb 2011 02:55:22 -0800 (PST) In-Reply-To: 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: "Urs Rau (UK)" Cc: "emacs-orgmode@gnu.org" On Sun, Feb 20, 2011 at 3:58 PM, Urs Rau (UK) wrote: > Hi > I would quite like to have a function that would work on a region , or on= a whole org file of todos and archive completed todos or a selected region= into a datetree in the archive file in such a way that all completed todo = items would be filed under the date on which their property says they were = completed or closed. > Maybe it can already do it and I just need to learn how? Worg has a hack [1] by Osamu Okanu, that modifies the org-archive-subtree function to archive into a datetree. Combining this with the org-map-entries function, you should be able to achieve what you want. Hope this helps, Puneeth [1] - http://orgmode.org/worg/org-hacks.html#sec-1_3_2