Gnus development mailing list
 help / color / mirror / Atom feed
From: Nelson Ferreira <nelson.ferreira@verizon.net>
Subject: News server connection not reopening on demon handler
Date: Mon, 10 May 2004 09:47:45 -0400	[thread overview]
Message-ID: <21938.9089420021$1084206001@news.gmane.org> (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



             reply	other threads:[~2004-05-10 13:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10 13:47 Nelson Ferreira [this message]
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

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='21938.9089420021$1084206001@news.gmane.org' \
    --to=nelson.ferreira@verizon.net \
    /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).