Gnus development mailing list
 help / color / mirror / Atom feed
* pgg.el and run-at-time
@ 2003-12-09 11:27 Katsumi Yamaoka
  2003-12-09 16:45 ` Simon Josefsson
  0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2003-12-09 11:27 UTC (permalink / raw)


Hi,

I noticed the run-at-time function of the XEmacs version doesn't
work correctly, which runs a timer function almost immediately
at the first time, ignoring the specified time, and reported it
to the XEmacs-beta list today.

Also I found pgg.el uses run-at-time directly.  Although I'm not
using pgg, I'm afraid that the cached passphrase may immediately
be expired.  Is it better to replace it with nnheader-run-at-time?

Please note, the nnheader-run-at-time function is not complete
in XEmacs.  It is particular to the argument types as follows:

(nnheader-run-at-time 1 nil 'ignore (current-time))
 => itimer "nnheader-run-at-time" signaled: (invalid-function 16341)

We may possibly want to modify that function as follows:

(defun nnheader-xmas-run-at-time (time repeat function &rest args)
  (start-itimer
   "nnheader-run-at-time"
   `(lambda ()
      (,function ,@(mapcar (lambda (arg) (list 'quote arg)) args)))
   time repeat))

Regards,
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-10  6:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-09 11:27 pgg.el and run-at-time Katsumi Yamaoka
2003-12-09 16:45 ` Simon Josefsson
2003-12-10  0:36   ` Katsumi Yamaoka
2003-12-10  6:35     ` Katsumi Yamaoka

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).