From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29276 Path: main.gmane.org!not-for-mail From: Yoshiki Hayashi Newsgroups: gmane.emacs.gnus.general Subject: nnvirtual: fetch parent article Date: 21 Feb 2000 17:41:43 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: <8766vj0wxk.fsf@dp50.ecc.u-tokyo.ac.jp> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Mon_Feb_21_17:41:43_2000-1" X-Trace: main.gmane.org 1035165973 1803 80.91.224.250 (21 Oct 2002 02:06:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:06:13 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id A8C76D051F for ; Mon, 21 Feb 2000 03:42:45 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id CAB04059; Mon, 21 Feb 2000 02:42:41 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 21 Feb 2000 02:42:05 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id CAA13808 for ; Mon, 21 Feb 2000 02:41:55 -0600 (CST) Original-Received: from mail2.ecc.u-tokyo.ac.jp (mail2.ecc.u-tokyo.ac.jp [130.69.250.23]) by mailhost.sclp.com (Postfix) with ESMTP id CA127D051E for ; Mon, 21 Feb 2000 03:41:58 -0500 (EST) Original-Received: from dp50.ecc.u-tokyo.ac.jp (fw302.ecc.u-tokyo.ac.jp [133.11.171.252]) by mail2.ecc.u-tokyo.ac.jp (8.9.3+3.2W/3.7W) with ESMTP id RAA12534 for ; Mon, 21 Feb 2000 17:41:15 +0900 (JST) Original-To: ding@gnus.org Original-Lines: 73 User-Agent: T-gnus/6.14.1 (based on Gnus v5.8.3) (revision 07) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29276 --Multipart_Mon_Feb_21_17:41:43_2000-1 Content-Type: text/plain; charset=US-ASCII Go to nnvirtual group, read one article and then type ^. You'll get: Variable binding depth exceeds max-specpdl-size I confirmed with latest Gnus 5.8.4 from CVS. Because gnus-override-method is bound, gnus-find-method-for-group always returns nnvirtual. Thus, it ends up in an infinite loop. I don't know this is the right fix, but at least it works for me. Latter half is to prevent an error, Wrong type argument stringp: nil 2000-02-21 Yoshiki Hayashi * nnvirtual.el (nnvirtual-request-article): Bind gnus-override-method to nil. (nnvirtual-request-update-mark): Don't update mark when article is not there. --Multipart_Mon_Feb_21_17:41:43_2000-1 Content-Type: text/plain; type=patch; charset=US-ASCII Content-Disposition: inline; filename="nnvirtual.el.diff" Content-Transfer-Encoding: 7bit Index: nnvirtual.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnvirtual.el,v retrieving revision 5.11 diff -u -r5.11 nnvirtual.el --- nnvirtual.el 1999/12/04 01:11:14 5.11 +++ nnvirtual.el 2000/02/21 08:37:00 @@ -197,8 +197,9 @@ (save-excursion (when buffer (set-buffer buffer)) - (let ((method (gnus-find-method-for-group - nnvirtual-last-accessed-component-group))) + (let* ((gnus-override-method nil) + (method (gnus-find-method-for-group + nnvirtual-last-accessed-component-group))) (funcall (gnus-get-function method 'request-article) article nil (nth 1 method) buffer))))) ;; This is a fetch by number. @@ -283,12 +284,11 @@ (deffoo nnvirtual-request-update-mark (group article mark) (let* ((nart (nnvirtual-map-article article)) - (cgroup (car nart)) - ;; The component group might be a virtual group. - (nmark (gnus-request-update-mark cgroup (cdr nart) mark))) + (cgroup (car nart))) (when (and nart (memq mark gnus-auto-expirable-marks) - (= mark nmark) + ;; The component group might be a virtual group. + (= mark (gnus-request-update-mark cgroup (cdr nart) mark)) (gnus-group-auto-expirable-p cgroup)) (setq mark gnus-expirable-mark))) mark) --Multipart_Mon_Feb_21_17:41:43_2000-1 Content-Type: text/plain; charset=US-ASCII -- Yoshiki Hayashi --Multipart_Mon_Feb_21_17:41:43_2000-1--