Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!mrsvr.UUCP!mrsvr!nuge From: nuge@ctmed@gemed.ge.com (James A. Nugent) Newsgroups: comp.emacs Subject: Re: GNUS. Can one restart a suspension? Message-ID: Date: 12 Oct 90 14:50:51 GMT References: <9010100137.AA24957@saturn.ads.com> Sender: news@mrsvr.UUCP Organization: GE Medical Systems, Milwaukee, WI Lines: 44 In-reply-to: bob@MorningStar.Com's message of 11 Oct 90 21:27:54 GMT In article bob@MorningStar.Com (Bob Sutterfield) writes: > In article > squash@math.ufl.edu (Jonathan King) writes: > I suspend GNUS with `z', leave the workstation idle for several > hours, come back and switch to the *Newsgroup* buffer, type `g' and > see a message (approx) "Process NNTP not running..." > Sounds like your idle time crossed a threshold, and nntpd gave up on > you, packed it in, and closed the connection. It's not GNUS' fault. Exactly. But it's easy to re-connect to the nntp server. In fact, I close the nntp server when I suspend just to be clean about it and not waste a connection. (I leave GNUS loaded all day.) Then I open the server (manually) when I "unsuspend" GNUS, i.e. switch to the *Newsgroup* buffer. I close the connection on the suspend hook: (setq gnus-Suspend-gnus-hook '(lambda () (gnus-save-newsrc-file) ; may be gone a long time (nntp-close-server))) ; close nntp connection And bind the "o" key to reopen the connection in Group mode: (setq gnus-Group-mode-hook '(lambda () (define-key gnus-Group-mode-map "o" '(lambda () (interactive) (gnus-open-server gnus-nntp-server gnus-nntp-service))))) After switching to the *Newsgroup* buffer, I type o (for "open server") before "g". It would be possible to check and open the connection automatically, as gnus-post-news does, but I didn't think it was worth it. If you forget the "o" you just get an error when you do "g" so you do "o" then "g" again. -- Jim Nugent