From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24330 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] Re: topic parameters and agent-score Date: 17 Jul 1999 10:08:45 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2n7lnz4bde.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 1035161916 8122 80.91.224.250 (21 Oct 2002 00:58:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:58:36 +0000 (UTC) Cc: ding@gnus.org 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 KAA29755 for ; Sat, 17 Jul 1999 10:09:41 -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 JAB28417; Sat, 17 Jul 1999 09:08:07 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 17 Jul 1999 09:08:46 -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 JAA29942 for ; Sat, 17 Jul 1999 09:08:35 -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 KAA29741 for ; Sat, 17 Jul 1999 10:07:32 -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 KAA19904; Sat, 17 Jul 1999 10:07:26 -0400 (EDT) Original-Received: (from zsh@localhost) by heart.cs.rochester.edu (8.9.3/8.9.3) id KAA01687; Sat, 17 Jul 1999 10:08:45 -0400 Original-To: Robert Epprecht 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 In-Reply-To: Robert Epprecht's message of "17 Jul 1999 07:29:53 +0200" Original-Lines: 29 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) XEmacs/21.2 (Toshima) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24330 --=-=-= >>>>> "Robert" == Robert Epprecht writes: Robert> BTW: I got a different backtrace this morning, which was caused for Robert> the first time by another group. I attach it, because it might Robert> throw some light on the issue. Robert> ================backtrace=================== Robert> Signaling: (error "Selecting deleted buffer") Robert> nntp-retrieve-articles((71810 71809 71774) "de.comp.os.unix.linux.misc" "new$ gnus-retrieve-articles((71810 71809 71774) "de.comp.os.unix.linux.misc") Robert> gnus-agent-fetch-articles("de.comp.os.unix.linux.misc" (71810 71809 71774)) Robert> gnus-agent-fetch-group-1("de.comp.os.unix.linux.misc" (nntp "news.sunrise.ch$ gnus-agent-fetch-session() Robert> * call-interactively(gnus-agent-fetch-session) Robert> ============================================ Although you get different backtrace, the reason is the same. Read my article <2nu2r9yvuh.fsf@tiger.jia.vnet>. The patch in the article fixes part of this bug. Here is another patch. You need apply both patches. I hope these can fix the bug. 1999-07-17 Shenghuo ZHU * nntp.el (nntp-kill-buffer): New function. * nntp.el: Use it to kill process buffer. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=95-zsh11.diff --- ../../pgnus-sent/lisp/nntp.el Tue Jul 6 10:04:38 1999 +++ nntp.el Sat Jul 17 09:54:23 1999 @@ -292,6 +292,11 @@ (unless discard (erase-buffer))))) +(defun nntp-kill-buffer (buffer) + (when (buffer-name buffer) + (kill-buffer buffer) + (nnheader-init-server-buffer))) + (defsubst nntp-find-connection (buffer) "Find the connection delivering to BUFFER." (let ((alist nntp-connection-alist) @@ -304,8 +309,7 @@ (when process (if (memq (process-status process) '(open run)) process - (when (buffer-name (process-buffer process)) - (kill-buffer (process-buffer process))) + (nntp-kill-buffer (process-buffer process)) (setq nntp-connection-alist (delq entry nntp-connection-alist)) nil)))) @@ -696,8 +700,7 @@ ;; QUIT command actually is sent out before we kill ;; the process. (sleep-for 1)))) - (when (buffer-name (process-buffer process)) - (kill-buffer (process-buffer process))) + (nntp-kill-buffer (process-buffer process)) (setq process (car (pop nntp-connection-alist)))) (nnoo-close-server 'nntp))) @@ -713,8 +716,7 @@ ;; QUIT command actually is sent out before we kill ;; the process. (sleep-for 1)))) - (when (buffer-name (process-buffer process)) - (kill-buffer (process-buffer process)))))) + (nntp-kill-buffer (process-buffer process))))) (deffoo nntp-request-list (&optional server) (nntp-possibly-change-group nil server) @@ -846,8 +848,7 @@ (nnheader-run-at-time nntp-connection-timeout nil `(lambda () - (when (buffer-name ,pbuffer) - (kill-buffer ,pbuffer)))))) + (nntp-kill-buffer ,pbuffer))))) (process (condition-case () (let ((coding-system-for-read nntp-coding-system-for-read) @@ -873,8 +874,7 @@ (let ((nnheader-callback-function nil)) (run-hooks 'nntp-server-opened-hook) (nntp-send-authinfo t)))) - (when (buffer-name (process-buffer process)) - (kill-buffer (process-buffer process))) + (nntp-kill-buffer (process-buffer process)) nil)))) (defun nntp-open-network-stream (buffer) --=-=-= -- Shenghuo ZHU --=-=-=--