From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Kowalczyk Subject: Re: Patch for resolving "away time" when clocked in Date: Fri, 16 Oct 2009 17:02:48 +0000 (UTC) Message-ID: References: <27E1810B-0447-46B3-9AF4-BA14ACECA00A@gmail.com> <23C3964F-E34B-4322-BCC7-3C5F8088CBB3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyqCy-0007RU-33 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 13:03:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyqCt-0007Gq-9p for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 13:03:15 -0400 Received: from [199.232.76.173] (port=43070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyqCt-0007Ga-1d for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 13:03:11 -0400 Received: from lo.gmane.org ([80.91.229.12]:52916) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyqCs-0006oV-Dz for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 13:03:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MyqCp-0006cW-AJ for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 19:03:07 +0200 Received: from 24-216-241-93.dhcp.mdfd.or.charter.com ([24.216.241.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2009 19:03:07 +0200 Received: from jtk by 24-216-241-93.dhcp.mdfd.or.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Oct 2009 19:03:07 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org John Wiegley gmail.com> writes: > > On Oct 16, 2009, at 10:25 AM, Jeff Kowalczyk wrote: > > > I applied the patch against 93f396, and on Emacs 23.1 I get an error > > when clocking in. The error happens the first clock-in for > > each Emacs session, but the 'invalid timer' message shows for > > subsequent clock-in/out. > > In org-clock.el, on line 236, please change that line to: > > (defvar org-clock-left-over-time nil > > And see if this resolves your problem. Thank you. With that change there are no more visible errors or backtraces. > I am unable to reproduce the > cancel-timer failure here. Please load org-clock.el into Emacs and > type M-x eval-buffer and then trigger it again, that I may see the > complete stack trace. No error anymore as mentioned above. I'm not sure I'm triggering the new functionality correctly. In the scratch buffer, I eval'd: (setq org-clock-idle-time 1) Next, I created an Org buffer with one TODO file, and clocked in, and took my hands off the computer. I waited three minutes, then clocked out. * Worklog ** TODO Task 1 :LOGBOOK: CLOCK: [2009-10-16 Fri 09:42]--[2009-10-16 Fri 09:46] => 0:04 :END: Was I supposed to be prompted to resolve some minutes when clocking out after the org-clock-idle-time had elapsed? Thanks, Jeff