From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: bug#5822: run-at-time and Setting system time Date: Fri, 02 Apr 2010 20:40:26 +0300 Message-ID: <83aatlwy5x.fsf@gnu.org> References: <4BB595DE.1070306@globaledgesoft.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1270230244 21879 80.91.229.12 (2 Apr 2010 17:44:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Apr 2010 17:44:04 +0000 (UTC) Cc: 5822@debbugs.gnu.org, help-gnu-emacs@gnu.org To: chandan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 02 19:43:59 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NxkuV-0005Am-Hh for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 19:43:59 +0200 Original-Received: from localhost ([127.0.0.1]:48430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxkuU-0006Hr-TW for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 13:43:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nxkrf-0004nu-2F for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:41:03 -0400 Original-Received: from [140.186.70.92] (port=53684 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nxkre-0004nc-0X for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:41:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nxkrc-00053g-7O for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:41:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57376) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nxkrc-00053V-0X for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:41:00 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L0900J00ER27100@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 20:40:24 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.92.42]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L0900IHSFRBQ950@a-mtaout22.012.net.il>; Fri, 02 Apr 2010 20:40:24 +0300 (IDT) In-reply-to: <4BB595DE.1070306@globaledgesoft.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72580 Archived-At: > Date: Fri, 02 Apr 2010 12:29:42 +0530 > From: chandan > 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.