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

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

Re: Emacs resident looking for advice when Gnus blocks while fetching ne


From: Garjola Dindi
Subject: Re: Emacs resident looking for advice when Gnus blocks while fetching news
Date: Mon, 09 Dec 2019 12:02:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Thu 05-Dec-2019 at 00:45:26 +01, William Henderson 
<wmhenderson@freeshell.org> wrote: 

> ;; AUTOMATICALLY CHECK MAILPERIODICALLY
> (add-hook 'gnus-startup-hook
>   '(lambda ()
>      (gnus-demon-init)
>      (setq gnus-demon-timestep 1)  ;; each timestep is 1 second
>      ;; Check for new mail every 300 timesteps (5 minute)
>      (gnus-demon-add-handler 'gnus-demon-scan-news 300 t)
>      (gnus-demon-add-handler 'gnus-demon-scan-mail 300 t)
>
>      ;; Don't crash gnus if disconnected
>      (defadvice gnus-demon-scan-news (around gnus-demon-timeout activate)
>        "Timeout for Gnus."
>        (with-timeout
>        (120 (message "Gnus timed out."))
>      ad-do-it))))
>

Thanks for the detailed information. I am wondering if the use of the
demon does not block emacs?




reply via email to

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