emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jeff Kowalczyk <jtk@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: Patch for resolving "away time" when clocked in
Date: Fri, 16 Oct 2009 14:25:42 +0000 (UTC)	[thread overview]
Message-ID: <loom.20091016T155915-116@post.gmane.org> (raw)
In-Reply-To: 27E1810B-0447-46B3-9AF4-BA14ACECA00A@gmail.com

John Wiegley <jwiegley <at> 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 ()

  reply	other threads:[~2009-10-16 14:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-16  7:03 Patch for resolving "away time" when clocked in John Wiegley
2009-10-16 14:25 ` Jeff Kowalczyk [this message]
2009-10-16 16:32   ` John Wiegley
2009-10-16 17:02     ` Jeff Kowalczyk
2009-10-16 17:41       ` John Wiegley
2009-10-16 17:52         ` John Wiegley
2009-10-16 18:13           ` Patch for resolving Jeff Kowalczyk
2009-10-16 15:59 ` Patch for resolving "away time" when clocked in Gregory J. Grubbs
2009-10-16 16:45   ` John Wiegley
2009-10-16 18:09     ` Gregory J. Grubbs
2009-10-16 18:43       ` John Wiegley
2009-10-19 15:41 ` Bernt Hansen
2009-10-19 20:44   ` John Wiegley
2009-10-19 22:02     ` Bernt Hansen
2009-10-20 11:57 ` James TD Smith
2009-10-20 16:43   ` John Wiegley

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=loom.20091016T155915-116@post.gmane.org \
    --to=jtk@yahoo.com \
    --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).