Gnus development mailing list
 help / color / mirror / Atom feed
* News server connection not reopening on demon handler
@ 2004-05-10 13:47 Nelson Ferreira
  2004-05-16 11:37 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Nelson Ferreira @ 2004-05-10 13:47 UTC (permalink / raw)



Hi All,

For some time now I've notice my usual demon-handler for getting news
does not reopen the connection to the news server, which of course
makes it close to useless.

Here is the relevant snippet.
Am I missing some step, should I do it differently now ?
Should I check some variable ?

(require 'gnus-demon)
(setq gnus-demon-timestep 1)
(gnus-demon-add-handler 'njsf-gnus-demon-scan-mail 480 240)
(gnus-demon-add-handler 'gnus-demon-scan-update-news 540 480)
(gnus-demon-add-handler 'gnus-save-newsrc-file 1800 600)
(gnus-demon-add-handler 'gnus-group-expire-all-groups 86400 10800)
(defun njsf-gnus-demon-scan-mail ()
  (when (gnus-alive-p)
    (save-window-excursion
      (save-excursion
	(set-buffer gnus-group-buffer)
	(gnus-group-get-new-news 2)))))
(defun gnus-demon-scan-update-news ()
  (when (gnus-alive-p)
    (save-window-excursion
      (save-excursion
	(set-buffer gnus-group-buffer)
	(gnus-group-get-new-news 5)))))
(add-hook 'gnus-startup-hook 'gnus-demon-init)

Thanks,

        Nelson

-- 
Nelson Ferreira



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-16 14:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10 13:47 News server connection not reopening on demon handler Nelson Ferreira
2004-05-16 11:37 ` Lars Magne Ingebrigtsen
2004-05-16 12:01   ` Nelson Ferreira
2004-05-16 12:05     ` Lars Magne Ingebrigtsen
2004-05-16 13:40       ` Nelson Ferreira
     [not found]       ` <m3wu3ctrrg.fsf_-nf--_xmat_-m:gnus_---@tuxie.homelinux.net>
2004-05-16 14:07         ` Nelson Ferreira

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).