From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24204 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-agent-fetch-session dies in 0.95 Date: 13 Jul 1999 01:14:46 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nu2r9yvuh.fsf@tiger.jia.vnet> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035161810 7420 80.91.224.250 (21 Oct 2002 00:56:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:56:50 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id BAA23649 for ; Tue, 13 Jul 1999 01:14:54 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id AAB20375; Tue, 13 Jul 1999 00:14:27 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 13 Jul 1999 00:14:57 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA28314 for ; Tue, 13 Jul 1999 00:14:45 -0500 (CDT) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id BAA23622 for ; Tue, 13 Jul 1999 01:13:43 -0400 (EDT) Original-Received: from heart.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by cayuga.cs.rochester.edu (8.9.3/Q) with ESMTP id BAA10587 for ; Tue, 13 Jul 1999 01:13:36 -0400 (EDT) Original-Received: (from zsh@localhost) by heart.cs.rochester.edu (8.9.3/8.9.3) id BAA01643; Tue, 13 Jul 1999 01:14:47 -0400 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q Original-Lines: 54 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.2 (Chiyoda) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24204 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24204 --=-=-= >>>>> "Paul" == Paul Stodghill writes: Paul> I started using the agent this morning, and I have encountered Paul> the following error intermittently throughout the day. Paul> Signaling: (error "Selecting deleted or non-existent buffer") Paul> copy-to-buffer(# 1 233) Paul> gnus-agent-fetch-headers("comp.emacs") Paul> gnus-agent-fetch-group-1("comp.emacs" (nntp "newsstand.cit.cornell.edu")) Paul> gnus-agent-fetch-session() Paul> (progn (gnus-agent-fetch-session)) Paul> ) Paul> (if gnus-plugged (progn (gnus-agent-fetch-session))) Paul> ) Paul> (when gnus-plugged (gnus-agent-fetch-session)) Paul> ) Paul> pvs-fetch-session-after-new-news() Paul> run-hooks(pvs-fetch-session-after-new-news) Paul> apply(run-hooks pvs-fetch-session-after-new-news) Paul> gnus-run-hooks(gnus-after-getting-new-news-hook) Paul> gnus-group-get-new-news(nil) Paul> call-interactively(gnus-group-get-new-news) Paul> I am not sure what is triggering it, but once I encounter it, I Paul> have to quit and restart Gnus to make it go away. I had encountered this before (using batch-fetch). When I set a trap, it never happened again. OK, now I get your backtrace. You probably use more than one nntp server. I guess you lose connection to one nntp server (probably not newsstand.cit.cornell.edu) If my guess is right, the reason is that gnus-agent uses gnus-agent-overview-buffer as nntp-server-buffer. When gnus can not connect a nntp server, the buffer is killed. ,-------- Line 959, file gnus-agent.el | (let ((nntp-server-buffer gnus-agent-overview-buffer)) | (setq gnus-newsgroup-headers | (gnus-get-newsgroup-headers-xover articles nil nil group))) `-------- Anyway, try this patch. 1999-07-12 Shenghuo ZHU * gnus-agent.el (gnus-agent-fetch-group-1): Recreate agent overview buffer if it is killed. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=95-zsh4.diff --- gnus-agent.el 1999/07/13 01:54:14 1.1 +++ gnus-agent.el 1999/07/13 02:02:32 @@ -949,16 +949,27 @@ category predicate info marks score-param) ;; Fetch headers. (when (and (or (gnus-active group) (gnus-activate-group group)) - (setq articles (gnus-agent-fetch-headers group))) - ;; Parse them and see which articles we want to fetch. - (setq gnus-newsgroup-dependencies - (make-vector (length articles) 0)) - ;; No need to call `gnus-get-newsgroup-headers-xover' with - ;; the entire .overview for group as we still have the just - ;; downloaded headers in `gnus-agent-overview-buffer'. - (let ((nntp-server-buffer gnus-agent-overview-buffer)) - (setq gnus-newsgroup-headers - (gnus-get-newsgroup-headers-xover articles nil nil group))) + (setq articles (gnus-agent-fetch-headers group)) + (progn + ;; Parse them and see which articles we want to fetch. + (setq gnus-newsgroup-dependencies + (make-vector (length articles) 0)) + ;; No need to call `gnus-get-newsgroup-headers-xover' with + ;; the entire .overview for group as we still have the just + ;; downloaded headers in `gnus-agent-overview-buffer'. + (let ((nntp-server-buffer gnus-agent-overview-buffer)) + (setq gnus-newsgroup-headers + (gnus-get-newsgroup-headers-xover articles nil nil + group))) + ;; `gnus-agent-overview-buffer' may be killed for + ;; timeout reason. If so, recreate it. + (if (gnus-buffer-live-p gnus-agent-overview-buffer) + t + (setq gnus-agent-overview-buffer + (gnus-get-buffer-create " *Gnus agent overview*")) + (with-current-buffer gnus-agent-overview-buffer + (mm-enable-multibyte)) + nil))) (setq category (gnus-group-category group)) (setq predicate (gnus-get-predicate --=-=-= -- Shenghuo ZHU --=-=-=--