From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55713 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] Trivial itimer tweaks for password.el Date: Tue, 06 Jan 2004 14:36:16 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073367391 29418 80.91.224.253 (6 Jan 2004 05:36:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jan 2004 05:36:31 +0000 (UTC) Original-X-From: ding-owner+M4253=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Jan 06 06:36:28 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AdjtE-0006vB-00 for ; Tue, 06 Jan 2004 06:36:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AdjtD-0003oc-05 for ding-account@gmane.org; Mon, 05 Jan 2004 23:36:27 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Adjt8-0003oV-00 for ding@lists.math.uh.edu; Mon, 05 Jan 2004 23:36:22 -0600 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id 5887B3A0026 for ; Mon, 5 Jan 2004 23:36:22 -0600 (CST) Original-Received: from yamaoka by washington.hostforweb.net with local (Exim 4.24) id 1AdjtE-00005O-JU for ding@gnus.org; Tue, 06 Jan 2004 00:36:28 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:D7TPkoyZR43K42hu7QdlEx2d3q0= X-Hashcash: 0:040106:ding@gnus.org:31878131004caa87 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [32041 32041] / [47 12] X-AntiAbuse: Sender Address Domain - washington.hostforweb.net Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55713 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55713 >>>>> In >>>>> Lars Magne Ingebrigtsen wrote: > But looking at password.el, I don't quite understand why it defines a > version of `run-at-time'. Both XEmacs 21.4 and Emacs 21.x defines > that function, don't they? There's a bug in XEmacs. It ends more quickly than the specified time in almost cases. Here's a test case that Adrian Aichner wrote: (defun test-timer (second) (interactive "nSecond: ") (let ((start (current-time))) (run-at-time second nil (lambda (start second) (let ((end (current-time))) (message "Requested: %f, Lapsed: %f" second (+ (* (- (car end) (car start)) 65536) (- (nth 1 end) (nth 1 start)) (/ (- (nth 2 end) (nth 2 start)) 1000000.0))))) start second))) Although I've sent a patch for itimer.el last year, it is still neglected. -- Katsumi Yamaoka