From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: david@adboyd.com (J. David Boyd) Newsgroups: gmane.emacs.help,gmane.emacs.bugs Subject: Re: run-at-time and Setting system time Date: Fri, 02 Apr 2010 13:36:51 -0400 Message-ID: References: <4BB595DE.1070306@globaledgesoft.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270230113 21448 80.91.229.12 (2 Apr 2010 17:41:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Apr 2010 17:41:53 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 02 19:41:48 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 1NxksM-0003ui-Ny for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 19:41:47 +0200 Original-Received: from localhost ([127.0.0.1]:40254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxksL-0004wp-V6 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Apr 2010 13:41:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nxko1-0003Cl-Ps for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:37:17 -0400 Original-Received: from [140.186.70.92] (port=53312 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nxknz-0003Bc-Pj for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:37:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nxknx-0004jf-6W for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:37:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35951) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nxknw-0004jX-Vv for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 13:37:13 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nxknu-0000ri-BZ for help-gnu-emacs@gnu.org; Fri, 02 Apr 2010 19:37:10 +0200 Original-Received: from 198.204.74.254 ([198.204.74.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Apr 2010 19:37:10 +0200 Original-Received: from david by 198.204.74.254 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Apr 2010 19:37:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 198.204.74.254 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (cygwin) Cancel-Lock: sha1:4iBnvc3ohojmsAefH6CCqV3uXkI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72579 gmane.emacs.bugs:35880 Archived-At: chandan writes: > Hi, > Consider the following code: > > (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. Dave