emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
To: emacs-orgmode@gnu.org
Subject: Re: Collapsing tracked time?
Date: Sat, 17 Sep 2011 13:11:18 +0200	[thread overview]
Message-ID: <87sjnv8lux.fsf@rat.lan> (raw)
In-Reply-To: 87pqiz8t1h.fsf@dod.no

Steinar Bang <sb@dod.no> writes:

>>>>>> Stuart Hickinbottom <stuart@hickinbottom.com>:
>
>> Take a look at the org-clock-into-drawer and org-log-into-drawer 
>> variables:
>> http://orgmode.org/manual/Clocking-commands.html
>> http://orgmode.org/manual/Tracking-TODO-state-changes.html
>
>> Does this do what you want?
>
> The first URL does, or almost.  Clocking into a :LOGBOOK: drawer is what
> I want.  Or, at least: it's what I want for long running tasks with a
> lot of clocking in and out.
>
> I am not sure I want this behaviour across all clockings and all org
> files...? 

You can set org-clock-into-drawer to a number, which is used as
threshold. When there are equal or more clocking entries, then they are
put into a drawer.

> After testing I have found out that:
>  - default behaviour on an emacs23 org-mode is to clock into a :LOGBOOK:
>    drawer if it exists
>  - I can set the org-clock-into-drawer variable to t, and then it will
>    create a :LOGBOOK: drawer when clocking in, and I can move the rest
>    of the timestamps into i
>  - My emacs23 org-mode doesn't have the CLOCK_INTO_DRAWER property, and
>    setting the LOG_INTO_DRAWER property on a subtree to t and always
>    (the values I tried) didn't have any effect on clocking
>
> If there had been a quick way to add a :LOGBOOK: drawer to a TODO item,
> I would have just used the current behaviour and inserted :LOGBOOK:
> drawers at need.
>
> Hm... I think the simplest way is to set org-clock-into-drawer to t in
> .emacs, and see how that behaviour suits me.

You can also set org-clock-into-drawer to a string (e.g. "CLOCKS"), then
this string is used instead of "LOGBOOK".

C-h v org-clock-into-drawer RET

gives the complete documentation.

Regards, Olaf

  reply	other threads:[~2011-09-17 11:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16 20:01 Collapsing tracked time? Steinar Bang
2011-09-16 20:21 ` Stuart Hickinbottom
2011-09-17  8:36   ` Steinar Bang
2011-09-17 11:11     ` Olaf Dietsche [this message]
2011-09-17 20:03       ` Steinar Bang
2011-11-25 20:55         ` Steinar Bang
2011-11-30 12:24           ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 (Was: Collapsing tracked time?) Steinar Bang
2011-11-30 17:26             ` "CLOCKS" drawer not behaving like a drawer on Windows emacs 23.2 Bernt Hansen
2011-11-30 17:35             ` Achim Gratz
2011-11-30 20:33             ` Olaf Dietsche
2011-11-30 22:43               ` Steinar Bang
2011-09-17 11:27     ` Collapsing tracked time? Achim Gratz
2011-09-17 20:05       ` Steinar Bang

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjnv8lux.fsf@rat.lan \
    --to=olaf+list.orgmode@olafdietsche.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).