Julien Danjou writes:
Hi,
I'm trying to rework gnus-demon to use modern timer function. But it
seems that XEmacs has nothing like (current-idle-timer) Emacs has, and
What does current-idle-timer do?
run-with-idle-timer is not usable because it only run once by idle
session.
;; probably you want to wrap this up in a macro and use a gensym
;; instead of a global symbol
(defvar timer-foo-timer nil)
(defun timer-foo ()
(do-foo)
(when (itimerp timer-foo-timer) (delete-itimer itimer-foo-timer))
(setq timer-foo-timer (run-with-idle-timer secs nil #'timer-foo)))
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta