From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Archiving drawers? Date: Sun, 26 Aug 2012 11:20:32 -0400 Message-ID: <87fw793cjj.fsf@norang.ca> 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]:44396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5edt-0001FG-Vf for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 11:20:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5edr-00024I-A6 for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 11:20:49 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:16286 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5edr-000243-6T for emacs-orgmode@gnu.org; Sun, 26 Aug 2012 11:20:47 -0400 In-Reply-To: <8762884gg5.fsf@altern.org> (Bastien's message of "Fri, 24 Aug 2012 14:34:02 +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: Bastien Cc: Loris Bennett , 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 :) When my LOGBOOK entries get too big I clone the task, remove the repeater and mark it DONE (so I can archive the old entries and continue with my current stuff) For habits I keep some history so the current habit graph is correct and for non-habits I usually (but not always) archive the clock entries from beginning of this month and earlier. My trigger for doing this is when I notice todo state changes take a noticeable amount of time on the agenda. I do this infrequently so I haven't bothered automating it. I do have to manually delete all of the duplicated notes in the LOGBOOK drawer for the clone (clock lines are removed in cloned tasks but the notes are not which feels wrong ... but it hasn't bothered me enough to try to fix it yet.) I'm sure there's a better way I haven't discovered yet. Just my 2 cents. Regards, Bernt