From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#5823: run-at-time and Setting system time Date: Sun, 18 Sep 2011 22:02:39 +0200 Message-ID: References: <4BB595DE.1070306@globaledgesoft.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316376443 18627 80.91.229.12 (18 Sep 2011 20:07:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2011 20:07:23 +0000 (UTC) Cc: 5823@debbugs.gnu.org To: david@adboyd.com (J. David Boyd) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 18 22:07:17 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Ndz-0007Tq-US for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 22:07:16 +0200 Original-Received: from localhost ([::1]:54947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Ndz-0002Iq-9T for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 16:07:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Nds-0002DK-0s for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 16:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5Ndp-0006yk-Jt for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 16:07:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5Ndp-0006yg-H4 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 16:07:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R5Nic-0002Om-Gy for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 16:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2011 20:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5823 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5823-submit@debbugs.gnu.org id=B5823.13163766829161 (code B ref 5823); Sun, 18 Sep 2011 20:12:02 +0000 Original-Received: (at 5823) by debbugs.gnu.org; 18 Sep 2011 20:11:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Nhx-0002Ni-Ul for submit@debbugs.gnu.org; Sun, 18 Sep 2011 16:11:22 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5Nhv-0002NU-9D for 5823@debbugs.gnu.org; Sun, 18 Sep 2011 16:11:20 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R5Nd1-0005A4-5v; Sun, 18 Sep 2011 22:06:15 +0200 In-Reply-To: (J. David Boyd's message of "Fri, 02 Apr 2010 13:36:51 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Jane Siberry's _The Walking_ X-MailScanner-ID: 1R5Nd1-0005A4-5v MailScanner-NULL-Check: 1316981175.30724@x+BWxLrviJVp7SdgBg4xAQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Sep 2011 16:12:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51445 Archived-At: 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/