From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: [PATCH] Use correct variable when calculating `org-timer-start-time' Date: Sat, 17 Jul 2010 08:21:53 +0200 Message-ID: <1279347713-29950-1-git-send-email-dmaus@ictsoc.de> References: <4C40B005.6090403@christianmoe.com> Return-path: Received: from [140.186.70.92] (port=44469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oa0nO-0003Ow-0A for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 02:22:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oa0nN-0004i7-11 for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 02:22:45 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:43349) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oa0nM-0004hq-PC for emacs-orgmode@gnu.org; Sat, 17 Jul 2010 02:22:44 -0400 In-Reply-To: <4C40B005.6090403@christianmoe.com> 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 * 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