From: Samuel Wales <samologist@gmail.com>
To: emacs-orgmode@gnu.org
Subject: bug: can't clock out
Date: Fri, 5 Feb 2010 17:05:47 -0700 [thread overview]
Message-ID: <20524da71002051605v1a5a8a9bw49b579ccb4703170@mail.gmail.com> (raw)
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
next reply other threads:[~2010-02-06 0:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-06 0:05 Samuel Wales [this message]
2010-02-06 11:53 ` bug: can't clock out Carsten Dominik
2010-02-06 16:32 ` Samuel Wales
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=20524da71002051605v1a5a8a9bw49b579ccb4703170@mail.gmail.com \
--to=samologist@gmail.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).