From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Dietsche Subject: Re: Collapsing tracked time? Date: Sat, 17 Sep 2011 13:11:18 +0200 Message-ID: <87sjnv8lux.fsf@rat.lan> References: <8762ksi7dk.fsf@dod.no> <4E73AFAE.9070106@hickinbottom.com> <87pqiz8t1h.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4snz-0005MD-RM for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 07:11:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4snx-000889-Tz for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 07:11:31 -0400 Received: from www85.your-server.de ([213.133.104.85]:56901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4snx-00087C-PK for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 07:11:29 -0400 Received: from [93.214.146.98] (helo=rat.lan) by www85.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1R4snq-00021P-VV for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 13:11:23 +0200 Received: from localhost ([127.0.0.1] helo=rat.lan) by rat.lan with esmtp (Exim 4.72) (envelope-from ) id 1R4snm-00005Q-C4 for emacs-orgmode@gnu.org; Sat, 17 Sep 2011 13:11:18 +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 Steinar Bang writes: >>>>>> Stuart Hickinbottom : > >> 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