unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: chandan <chandan.babu@globaledgesoft.com>
Cc: 5822@debbugs.gnu.org, help-gnu-emacs@gnu.org
Subject: Re: bug#5822: run-at-time and Setting system time
Date: Fri, 02 Apr 2010 20:40:26 +0300	[thread overview]
Message-ID: <83aatlwy5x.fsf@gnu.org> (raw)
In-Reply-To: <4BB595DE.1070306@globaledgesoft.com>

> Date: Fri, 02 Apr 2010 12:29:42 +0530
> From: chandan <chandan.babu@globaledgesoft.com>
> Cc: 
> 
> (defun mwnn-timer-callback ()
>   (message "Hi, inside mwnn-timer-callback"))
> 
> (run-at-time "60" nil 'mwnn-timer-callback)
> 
> The above code is supposed to cause mwnn-timer-callback to get invoked 
> after 60 seconds. But if the system time is changed to a future date 
> (say 20 seconds after the timer is started) the timer fires immediately.
> 
> Is this is a bug in the emacs code. If yes, can this be rectified?

I think this how the timers are supposed to behave.  They are not
interval timers, if that's what you expected.




  parent reply	other threads:[~2010-04-02 17:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-02  6:59 run-at-time and Setting system time chandan
2010-04-02 17:36 ` J. David Boyd
2010-04-02 17:40 ` Eli Zaretskii [this message]
2009-04-05  3:44   ` bug#5822: " chandan
2010-04-02 18:55 ` Glenn Morris

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83aatlwy5x.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=5822@debbugs.gnu.org \
    --cc=chandan.babu@globaledgesoft.com \
    --cc=help-gnu-emacs@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.
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).