info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem trying to get new email every 10 minutes automatically


From: Brady Trainor
Subject: Re: Problem trying to get new email every 10 minutes automatically
Date: Sun, 18 Oct 2015 17:21:25 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

David Hume <David.Hume@example.com> writes:

> cseberino@gmail.com writes:
>
>>
>> (gnus-demon-add-handler 'gnus-demon-scan-news 10 t)
>
> My guess is it is using run-with-idle-timer which behaves differently
> from what you would expect. If you do nothing in emacs for 10 minutes it
> might get mail. But if you press a key the timer is reset. Also I think
> after it has got mail it doesn't set the idle timer going again unless
> you do something.
>
[...]

Right, "If IDLE is t, only call each time Emacs has been idle for TIME." from, 

,----[ C-h v gnus-demon-handlers RET ]
| gnus-demon-handlers is a variable defined in `gnus-demon.el'.
| Its value is 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-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.
| 
| You can customize this variable.
| 
| [back]
`----

--
Brady




reply via email to

[Prev in Thread] Current Thread [Next in Thread]