From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: bug: can't clock out Date: Fri, 5 Feb 2010 17:05:47 -0700 Message-ID: <20524da71002051605v1a5a8a9bw49b579ccb4703170@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdYBO-0004Oh-6E for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:05:54 -0500 Received: from [199.232.76.173] (port=44807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdYBM-0004OW-R2 for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:05:52 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdYBM-00065p-0q for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:05:52 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:39466) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdYBL-00065f-NT for emacs-orgmode@gnu.org; Fri, 05 Feb 2010 19:05:51 -0500 Received: by fxm25 with SMTP id 25so1516388fxm.32 for ; Fri, 05 Feb 2010 16:05:49 -0800 (PST) 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 For a few weeks or so, most of the time when I clock out, I get an error. Cannot narrow it down further. (setf org-clock-modeline-total 'today) (setq org-clock-into-drawer t) Clock in. Wait a few hours, doing stuff in org in the meantime. signal(error ("Clock start time is gone")) error("Clock start time is gone") (if fail-quietly (throw (quote exit) nil) (error "Clock start time is gone")) (if (and (looking-at ...) (equal ... org-clock-string)) (setq ts (match-string 2)) (if fail-quietly (throw ... nil) (error "Clock start time is gone"))) (save-restriction (widen) (goto-char org-clock-marker) (beginning-of-line 1) (if (and ... ...) (setq ts ...) (if fail-quietly ... ...)) (goto-char (match-end 0)) (delete-region (point) (point-at-eol)) (insert "--") (setq te (org-insert-time-stamp ... ... ...)) (setq s (- ... ...) h (floor ...) s (- s ...) m (floor ...) s (- s ...)) (insert " => " (format "%2d:%02d" h m)) (when (setq remove ...) (beginning-of-line 1) (delete-region ... ...) (and ... ... ...)) (move-marker org-clock-marker nil) (move-marker org-clock-hd-marker nil) (when org-log-note-clock-out (org-add-log-setup ... nil nil nil nil ...)) (when org-clock-mode-line-timer (cancel-timer org-clock-mode-line-timer) (setq org-clock-mode-line-timer nil)) (when org-clock-idle-timer (cancel-timer org-clock-idle-timer) (setq org-clock-idle-timer nil)) (setq global-mode-string (delq ... global-mode-string)) (when org-clock-out-switch-to-state (save-excursion ... ...)) (force-mode-line-update) (message (concat "Clock stopped at %s after HH:MM = " org-time-clocksum-format "%s") te h m (if remove " => LINE REMOVED" "")) (run-hooks (quote org-clock-out-hook))) (save-excursion (set-buffer (marker-buffer org-clock-marker)) (save-restriction (widen) (goto-char org-clock-marker) (beginning-of-line 1) (if ... ... ...) (goto-char ...) (delete-region ... ...) (insert "--") (setq te ...) (setq s ... h ... s ... m ... s ...) (insert " => " ...) (when ... ... ... ...) (move-marker org-clock-marker nil) (move-marker org-clock-hd-marker nil) (when org-log-note-clock-out ...) (when org-clock-mode-line-timer ... ...) (when org-clock-idle-timer ... ...) (setq global-mode-string ...) (when org-clock-out-switch-to-state ...) (force-mode-line-update) (message ... te h m ...) (run-hooks ...))) (let (ts te s h m remove) (save-excursion (set-buffer ...) (save-restriction ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) (catch (quote exit) (if (not ...) (if fail-quietly ... ...)) (let (ts te s h m remove) (save-excursion ... ...))) org-clock-out() call-interactively(org-clock-out) -- Q: How many CDC "scientists" does it take to change a lightbulb? A: "You only think it's dark." [CDC has denied ME/"CFS" for 25 years] ========== Retrovirus: http://www.wpinstitute.org/xmrv/index.html