bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5823: run-at-time and Setting system time


From: Lars Magne Ingebrigtsen
Subject: bug#5823: run-at-time and Setting system time
Date: Sun, 18 Sep 2011 22:02:39 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]