emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] Use correct variable when calculating `org-timer-s


From: Christian Moe
Subject: Re: [Orgmode] [PATCH] Use correct variable when calculating `org-timer-start-time'
Date: Sat, 17 Jul 2010 12:23:17 +0200
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

Hi,

I've tested and this patch solves the bug I reported yesterday under the heading "[Orgmode] Bug: org-timer-start with offset [6.36trans]".

Thanks!

Yours,
Christian


David Maus wrote:
* 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)


--

Christian Moe
E-mail:  address@hidden
Website: http://christianmoe.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]