Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: [PATCH] Trivial itimer tweaks for password.el
Date: Tue, 06 Jan 2004 14:36:16 +0900	[thread overview]
Message-ID: <b9ysmitfxkf.fsf@jpl.org> (raw)
In-Reply-To: <m31xqdy7sj.fsf@quimbies.gnus.org>

>>>>> In <m31xqdy7sj.fsf@quimbies.gnus.org>
>>>>>	Lars Magne Ingebrigtsen <larsi@gnus.org> 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 <yamaoka@jpl.org>



  reply	other threads:[~2004-01-06  5:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-06  2:02 Steve Youngs
2004-01-06  3:10 ` Katsumi Yamaoka
2004-01-06  4:15   ` Steve Youngs
2004-01-06  5:18     ` Lars Magne Ingebrigtsen
2004-01-06  5:36       ` Katsumi Yamaoka [this message]
2004-01-06  5:47         ` Lars Magne Ingebrigtsen
2004-01-06  5:55           ` Katsumi Yamaoka
2004-01-06  5:57             ` Lars Magne Ingebrigtsen
2004-01-06  6:23               ` Lars Magne Ingebrigtsen
2004-01-06 15:33                 ` Steve Youngs
2004-01-07  2:43                   ` Lars Magne Ingebrigtsen
2004-01-07  4:31                     ` Steve Youngs
2004-01-07  4:43                       ` Lars Magne Ingebrigtsen
2004-01-07  5:42                         ` Steve Youngs
2004-01-06  6:30       ` Steve Youngs
2004-01-06  6:33         ` Lars Magne Ingebrigtsen
2004-01-06  9:53           ` Kai Grossjohann
2004-01-06 10:09             ` Katsumi Yamaoka
2004-01-06 11:03               ` Kai Grossjohann
2004-01-07  2:37                 ` Lars Magne Ingebrigtsen
2004-01-06  5:23     ` Katsumi Yamaoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9ysmitfxkf.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).