From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Archiving drawers?
Date: Fri, 24 Aug 2012 14:52:28 +0200 [thread overview]
Message-ID: <87lih45u5v.fsf@slate.zedat.fu-berlin.de> (raw)
In-Reply-To: 8762884gg5.fsf@altern.org
Bastien <bzg@altern.org> writes:
> Hi Loris,
>
> "Loris Bennett" <loris.bennett@fu-berlin.de> 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
next prev parent reply other threads:[~2012-08-24 12:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 12:19 Archiving drawers? Loris Bennett
2012-08-24 12:34 ` Bastien
2012-08-24 12:52 ` Loris Bennett [this message]
2012-08-24 14:56 ` Bastien
2012-08-24 19:10 ` Achim Gratz
2012-08-26 15:20 ` Bernt Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lih45u5v.fsf@slate.zedat.fu-berlin.de \
--to=loris.bennett@fu-berlin.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.