Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Brady Trainor <algebrat@uw.edu>
To: info-gnus-english@gnu.org
Subject: Re: Problem trying to get new email every 10 minutes automatically
Date: Sun, 18 Oct 2015 17:21:25 -0700	[thread overview]
Message-ID: <m26123vhbu.fsf@heeere.PK5001Z> (raw)
In-Reply-To: <84eggs61za.fsf@example.com>


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



  parent reply	other threads:[~2015-10-19  0:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18  1:44 cseberino
2015-10-18 10:12 ` Peter Münster
     [not found] ` <84eggs61za.fsf@example.com>
2015-10-18 12:08   ` Emanuel Berg
2015-10-19  0:12     ` Brady Trainor
2015-10-19 23:24       ` Emanuel Berg
2015-10-18 13:04   ` Random832
     [not found]   ` <mailman.555.1445173514.7904.info-gnus-english@gnu.org>
     [not found]     ` <84y4f03wvp.fsf@example.com>
2015-10-18 21:30       ` Random832
2015-10-19  0:21   ` Brady Trainor [this message]
2015-10-18 12:44 ` Adam Sjøgren
2015-10-18 14:30   ` Emanuel Berg
     [not found] ` <mailman.546.1445163145.7904.info-gnus-english@gnu.org>
2015-10-18 23:40   ` cseberino
2015-10-18 23:57     ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m26123vhbu.fsf@heeere.PK5001Z \
    --to=algebrat@uw.edu \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).