Variable: gnus-demon-handlers

gnus-demon-handlers is a customizable variable defined in gnus-demon.el.gz.

Value

nil

Documentation

Alist of daemonic handlers to be run at intervals.

Each handler is a list on the form

(FUNCTION TIME IDLE)

FUNCTION is the function to be called. TIME is the number of gnus-demon-timesteps between each call. If nil, never call. If t, call each gnus-demon-timestep.

If IDLE is t, only call each time Emacs has been idle for TIME. If IDLE is a number, only call when Emacs has been idle more than this number of gnus-demon-timesteps. If IDLE is nil, don't care about idleness. If IDLE is a number and TIME is nil, then call once each time Emacs has been idle for IDLE gnus-demon-timesteps.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-demon.el.gz
(defcustom gnus-demon-handlers nil
  "Alist of daemonic handlers to be run at intervals.
Each handler is a list on the form

\(FUNCTION TIME IDLE)

FUNCTION is the function to be called.  TIME is the number of
`gnus-demon-timestep's between each call.
If nil, never call.  If t, call each `gnus-demon-timestep'.

If IDLE is t, only call each time Emacs has been idle for TIME.
If IDLE is a number, only call when Emacs has been idle more than
this number of `gnus-demon-timestep's.
If IDLE is nil, don't care about idleness.
If IDLE is a number and TIME is nil, then call once each time
Emacs has been idle for IDLE `gnus-demon-timestep's."
  :type '(repeat (list function
		       (choice :tag "Time"
			       (const :tag "never" nil)
			       (const :tag "one" t)
			       (integer :tag "steps" 1))
		       (choice :tag "Idle"
			       (const :tag "don't care" nil)
			       (const :tag "for a while" t)
			       (integer :tag "steps" 1)))))