all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: david@adboyd.com (J. David Boyd)
Cc: 5823@debbugs.gnu.org
Subject: bug#5823: run-at-time and Setting system time
Date: Sun, 18 Sep 2011 22:02:39 +0200	[thread overview]
Message-ID: <m3wrd58vq8.fsf@stories.gnus.org> (raw)
In-Reply-To: <e8rbpe13gek.fsf@FLM000025LVE9F.catmktg.com> (J. David Boyd's message of "Fri, 02 Apr 2010 13:36:51 -0400")

david@adboyd.com (J. David Boyd) writes:

>> (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?
>>
>> Regards,
>> mwnn
>
> It sounds like a good thing to me.
>
> Say the time is 13:00, and you do what you said.  You told the machine
> to give an invocation at 13:01.  
>
> If you move the clock ahead, the code _should_ run, as it is now past
> 13:01.

Yes, I don't think this is a bug, so I'm closing this report.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





  reply	other threads:[~2011-09-18 20:02 UTC|newest]

Thread overview: 7+ 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
2011-09-18 20:02   ` Lars Magne Ingebrigtsen [this message]
2010-04-02 17:40 ` bug#5822: " Eli Zaretskii
2010-04-02 17:40 ` Eli Zaretskii
2009-04-05  3:44   ` 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

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

  git send-email \
    --in-reply-to=m3wrd58vq8.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=5823@debbugs.gnu.org \
    --cc=david@adboyd.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.