Don't have the timer wait another timer period when idleness is too low
authorPeter Münster <pmrb@free.fr>
Thu, 22 Mar 2012 21:10:36 +0000 (22:10 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 22 Mar 2012 21:10:36 +0000 (22:10 +0100)
commit30a0a24ef0566a0a3c7b2838c5f205849fa66591
tree2500e8ba59f8ff58560c1a7ec6bdbb3c912db7ef
parent04df70a9bda1fcbfb172d139331eb30614aa0217
Don't have the timer wait another timer period when idleness is too low

* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead of
waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
lisp/ChangeLog
lisp/gnus-demon.el