From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Archiving drawers? Date: Fri, 24 Aug 2012 14:52:28 +0200 Message-ID: <87lih45u5v.fsf@slate.zedat.fu-berlin.de> References: <87r4qw5voo.fsf@slate.zedat.fu-berlin.de> <8762884gg5.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tNT-0005XB-IJ for emacs-orgmode@gnu.org; Fri, 24 Aug 2012 08:52:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4tNS-0004mX-Dp for emacs-orgmode@gnu.org; Fri, 24 Aug 2012 08:52:43 -0400 Received: from plane.gmane.org ([80.91.229.3]:54764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tNS-0004mL-6i for emacs-orgmode@gnu.org; Fri, 24 Aug 2012 08:52:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1T4tNR-0004ct-6M for emacs-orgmode@gnu.org; Fri, 24 Aug 2012 14:52:41 +0200 Received: from slate.zedat.fu-berlin.de ([160.45.11.34]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2012 14:52:41 +0200 Received: from loris.bennett by slate.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Aug 2012 14:52:41 +0200 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 Bastien writes: > Hi Loris, > > "Loris Bennett" writes: > >> I have a small number of tasks that I clock into daily. I have already >> manually split off the older log entries into a separate draw called >> OLDLOGS. However, I was wondering whether there is a way of archiving >> these log entries while preserving the heading itself in the original >> org file. > > The question is: _where_ to archive those log entries? > > The best idea I can think of is another drawer, like you did. > As for automating this a bit, a nice Elisp exercise :) I was thinking more along the lines of the way archiving works already, but instead of moving the whole heading, a copy of the heading plus the old logs would be made in the archive file, and the old logs would be deleted from the original file, i.e. gtd.org: ,----------------------------------------------------------------- | * Make tea | :LOGBOOK: | CLOCK: [2012-08-24 Fri 13:05]--[2012-08-24 Fri 13:40] => 0:35 | :END: | :OLDLOGS: | CLOCK: [2011-12-23 Fri 12:45]--[2011-12-23 Fri 13:16] => 0:31 | :END: `----------------------------------------------------------------- would become gtd.org: ,----------------------------------------------------------------- | * Make tea | :LOGBOOK: | CLOCK: [2012-08-24 Fri 13:05]--[2012-08-24 Fri 13:40] => 0:35 | :END: `----------------------------------------------------------------- gtd.org_archive: ,----------------------------------------------------------------- | * Make tea | :OLDLOGS: | CLOCK: [2011-12-23 Fri 12:45]--[2011-12-23 Fri 13:16] => 0:31 | :END: `----------------------------------------------------------------- Loris