emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: David Maus <dmaus@ictsoc.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Use correct variable when calculating `org-timer-start-time'
Date: Sat, 17 Jul 2010 12:23:17 +0200	[thread overview]
Message-ID: <4C418495.6070508@christianmoe.com> (raw)
In-Reply-To: <1279347713-29950-1-git-send-email-dmaus@ictsoc.de>

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

  reply	other threads:[~2010-07-17 10: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 ` [PATCH] Use correct variable when calculating `org-timer-start-time' David Maus
2010-07-17 10:23   ` Christian Moe [this message]
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

  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=4C418495.6070508@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=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 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).