From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [PATCH] Use correct variable when calculating `org-timer-start-time' Date: Sat, 17 Jul 2010 12:23:17 +0200 Message-ID: <4C418495.6070508@christianmoe.com> References: <4C40B005.6090403@christianmoe.com> <1279347713-29950-1-git-send-email-dmaus@ictsoc.de> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=40383 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa4Xc-0005Bl-SJ for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 06:22:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oa4Xb-0005Mr-MT for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 06:22:44 -0400 Received: from mars.hitrost.net ([91.185.193.39]:54479) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa4Xb-0005MV-EB for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 06:22:43 -0400 In-Reply-To: <1279347713-29950-1-git-send-email-dmaus@ictsoc.de> 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: David Maus Cc: emacs-orgmode@gnu.org 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: mail@christianmoe.com Website: http://christianmoe.com