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 14:25:42 +0000 (UTC) Message-ID: References: <27E1810B-0447-46B3-9AF4-BA14ACECA00A@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 1MynlM-00048I-23 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:26:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MynlH-00047q-H3 for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:26:35 -0400 Received: from [199.232.76.173] (port=36647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MynlH-00047n-Du for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:26:31 -0400 Received: from lo.gmane.org ([80.91.229.12]:60358) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MynlG-0006MA-Va for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 10:26:31 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1Mynl2-0000FD-Lr for emacs-orgmode@gnu.org; Fri, 16 Oct 2009 16:26:16 +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 16:26:16 +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 16:26:16 +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: > Looking for anyone who uses Org's time clocking facilities and is > willing to test this with me. I've been using it for a couple of days > now. The functionality is based on the way the commercial app > OfficeTime handles idleness. Hi John, This is interesting and useful, and the manual section describing how it works is clear. 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. Thanks, Jeff Debugger entered--Lisp error: (error "Invalid timer") signal(error ("Invalid timer")) error("Invalid timer") cancel-timer(1) byte-code("(snip) [org-clock-resolving-clocks-due-to-idleness org-clock-marker org-clock-resolving-clocks org-clock-left-over-time left-over msg-extra marker-buffer nil "" t org-resolve-clocks throw abort (4) org-clock-select-task "Clock-in on task: " copy-marker error "Abort" marker-position org-clock-out (16) org-clock-mark-default-task org-on-heading-p point-at-bol 0 run-hooks org-clock-in-prepare-hook org-base-buffer org-back-to-heading org-clock-history-push functionp looking-at match-string 2 org-todo "[ ]*" "\\>" 4 org-trim 1 "???" org-propertize face org-clock-find-position "^[ ]* " " \\[\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}" " +\\sw+.? +[012][0-9]:[0-5][0-9]\\)\\][ ]*$" message "Matched %s" ...] 7) org-clock-in(nil) call-interactively(org-clock-in nil nil) The org-related parts of my config: (add-to-list 'load-path "~/.emacs.d/vendor/org-mode/lisp") (add-to-list 'load-path "~/.emacs.d/vendor/org-mode/contrib/lisp") (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (require 'org-install) (setq org-clock-persist t) (org-clock-persistence-insinuate) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (setq org-log-done 'time) (setq org-special-ctrl-k t) (org-remember-insinuate) (setq org-directory "~/org/") (setq org-default-notes-file (concat org-directory "/notes.org")) (define-key global-map "\C-cr" 'org-remember) (setq org-clock-into-drawer t) (setq org-clock-clocktable-default-properties '(:maxlevel 2 :scope subtree)) (defun yas/org-very-safe-expand ()