From mboxrd@z Thu Jan 1 00:00:00 1970 From: Louis Turk Subject: Re: Time clocking problem Date: Thu, 1 Sep 2016 20:59:51 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfRbX-0002bP-2X for emacs-orgmode@gnu.org; Thu, 01 Sep 2016 09:00:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfRbQ-0006Od-BW for emacs-orgmode@gnu.org; Thu, 01 Sep 2016 09:00:26 -0400 Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:38765) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1bfRbQ-0006OV-0s for emacs-orgmode@gnu.org; Thu, 01 Sep 2016 09:00:20 -0400 Received: from [36.85.172.207] (port=17525 helo=[192.168.1.9]) by box521.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2) (envelope-from ) id 1bfRb7-0004sI-BZ for emacs-orgmode@gnu.org; Thu, 01 Sep 2016 07:00:01 -0600 In-Reply-To: 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" To: emacs-orgmode@gnu.org On 09/01/2016 06:53 PM, Malcolm Purvis wrote: >>>>>> "Louis" == Louis Turk writes: > > Louis> 1 and 3 do not work for me. I have to place the cursor on the > Louis> *Organization task to start timing it. And when I clock out of a > Louis> todo item, the *Organization task is not automatically clocked > Louis> in. > > The code searches for the Organization task by the id stored in > the variable bh/organization-task-id. Are these matching in your case? > > Eg: > > #+begin_src org > ,#+FILETAGS: PERSONAL > ... > ,* Tasks > ,** Organization > :PROPERTIES: > :CLOCK_MODELINE_TOTAL: today > :ID: eb155a82-92b2-4f25-a3c6-0304591af2f9 > :END: > ... > #+end_src > > #+begin_src elisp > (setq bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9") > #+end_src > > Malcolm > Hi Malcolm, Thanks for responding. Here is what I have: #+FILETAGS OFFICE #+OPTIONS: toc:0 H:4 * Organization :LOGBOOK: CLOCK: [2016-09-01 Thu 20:42]--[2016-09-01 Thu 20:43] => 0:01 CLOCK: [2016-09-01 Thu 07:55]--[2016-09-01 Thu 07:56] => 0:01 CLOCK: [2016-08-31 Wed 15:51]--[2016-08-31 Wed 15:54] => 0:03 CLOCK: [2016-08-31 Wed 10:02]--[2016-08-31 Wed 10:36] => 0:34 CLOCK: [2016-08-31 Wed 08:45]--[2016-08-31 Wed 09:09] => 0:24 CLOCK: [2016-08-30 Tue 14:08]--[2016-08-30 Tue 14:09] => 0:01 CLOCK: [2016-08-30 Tue 10:24]--[2016-08-30 Tue 10:25] => 0:01 CLOCK: [2016-08-29 Mon 10:56]--[2016-08-29 Mon 11:08] => 0:12 :END: :PROPERTIES: :CLOCK_MODELINE_TOTAL: today :id: eb155a82-92b2-4f25-a3c6-0304591af2f9 :END: This line is in my .emacs: (defvar bh/organization-task-id "eb155a82-92b2-4f25-a3c6-0304591af2f9") If I type: C-u C-c C-x C-i 3 The clock starts on the * Organization task. So I assume the ID must not be the problem. The clock time above were all started with the cursor on the * Organization task, except the top one which was started with C-u C-c C-x C-i 3 Louis