GNU bug report logs - #5822
run-at-time and Setting system time

Previous Next

Package: emacs;

Reported by: chandan <chandan.babu <at> globaledgesoft.com>

Date: Fri, 2 Apr 2010 07:03:02 UTC

Severity: normal

Tags: notabug

Merged with 5823

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 5822 <at> debbugs.gnu.org (full text, mbox):

From: chandan <chandan.babu <at> globaledgesoft.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 5822 <at> debbugs.gnu.org, help-gnu-emacs <at> gnu.org
Subject: Re: bug#5822: run-at-time and Setting system time
Date: Sun, 05 Apr 2009 09:14:35 +0530
Eli Zaretskii wrote:
>> Date: Fri, 02 Apr 2010 12:29:42 +0530
>> From: chandan <chandan.babu <at> 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.
>
>   
Emacs seems to use setitimer & getitimer (interval timers) for 
implementing the timer module. This may be the cause of the problem. 
Using timer_create, timer_delete, timer_settime, timer_gettime etc.





This bug report was last modified 13 years and 301 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.