From: David Maus <dmaus@ictsoc.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Use correct variable when calculating `org-timer-start-time'
Date: Sat, 17 Jul 2010 08:21:53 +0200 [thread overview]
Message-ID: <1279347713-29950-1-git-send-email-dmaus@ictsoc.de> (raw)
In-Reply-To: <4C40B005.6090403@christianmoe.com>
* org-timer.el (org-timer-start): Use correct variable when
calculating `org-timer-start-time'.
---
lisp/org-timer.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/org-timer.el b/lisp/org-timer.el
index e0817c8..3b3ef02 100644
--- a/lisp/org-timer.el
+++ b/lisp/org-timer.el
@@ -102,7 +102,7 @@ the region 0:00:00."
(setq delta (org-timer-hms-to-secs (org-timer-fix-incomplete s)))))
(setq org-timer-start-time
(seconds-to-time
- (- (org-float-time) (org-timer-hms-to-secs s)))))
+ (- (org-float-time) delta))))
(org-timer-set-mode-line 'on)
(message "Timer start time set to %s, current value is %s"
(format-time-string "%T" org-timer-start-time)
--
1.7.1
next prev parent reply other threads:[~2010-07-17 6:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-16 19:16 Bug: org-timer-start with offset [6.36trans] Christian Moe
2010-07-17 6:21 ` David Maus [this message]
2010-07-17 10:23 ` [PATCH] Use correct variable when calculating `org-timer-start-time' Christian Moe
2010-07-18 5:55 ` Patchwork: Patch 145 Accepted Carsten Dominik
2010-07-17 10:29 ` Bug: org-timer-start with offset [6.36trans] Christian Moe
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1279347713-29950-1-git-send-email-dmaus@ictsoc.de \
--to=dmaus@ictsoc.de \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.