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: Emanuel Berg
Subject: Re: Problem trying to get new email every 10 minutes automatically
Date: Tue, 20 Oct 2015 01:24:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Brady Trainor <algebrat@uw.edu> writes:

> The following,
>
> #+BEGIN_SRC elisp
> (setq gnus-demon-handlers nil)
> (setq gnus-demon-timestep 5)
> (gnus-demon-add-handler (lambda ()
>                           (message "hello"))
>                         1 nil)
> #+END_SRC
>
> works for me.

Thank you. Indeed, this works for me.

(require 'gnus-demon)
(require 'cl-lib)
(defvar *its*)
(setq *its* 0)
(setq gnus-demon-timestep 1)
(gnus-demon-add-handler (lambda ()
                          (cl-incf *its*)
                          (message "hello: %s" *its*))
                        1 nil)

Perhaps it was the `gnus-demon-timestep' that did it.
(Note: if anyone can't get to the help of that
variable, do (require 'gnus-demon) first. FWR this
isn't necessary to get the help of
`gnus-demon-add-handler', even tho that is also
defined in gnus-demon.el).

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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