From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32960 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Problem with gnus-refer-article-method Date: Tue, 24 Oct 2000 18:45:35 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: <200010242245.e9OMjZW01832@zsh.2y.net> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169155 22682 80.91.224.250 (21 Oct 2002 02:59:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:59:15 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 159A4D049A for ; Tue, 24 Oct 2000 18:46:43 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id RAB07560; Tue, 24 Oct 2000 17:45:53 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 24 Oct 2000 17:45:10 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id RAA27348 for ; Tue, 24 Oct 2000 17:44:53 -0500 (CDT) Original-Received: from zsh.2y.net (d18182925.rochester.rr.com [24.24.41.37]) by mailhost.sclp.com (Postfix) with ESMTP id C3574D049A for ; Tue, 24 Oct 2000 18:45:16 -0400 (EDT) Original-Received: (from zsh@localhost) by zsh.2y.net (8.10.0/8.10.0) id e9OMjZW01832; Tue, 24 Oct 2000 18:45:35 -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 In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.0.90 Original-Lines: 47 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32960 Stefan Wiens writes: > According to the documentation, the value of gnus-refer-article-method > may be a single select method. > > If I make (setq gnus-refer-article-method '(nntp "neon")) and try to > read an old article not displayed in the summary buffer (e.g. by > typing "^"), I get the error "Wrong type argument: listp, nntp". > > This does not happen if gnus-refer-article-method is a symbol or a > list of select methods (possibly containing a single method). > > I tried to track this down, and found that the > gnus-request-article-this-buffer function doesn't handle this case > properly. > > This is my first attempt to fix this: > > --- gnus-art.el.orig Sat Jul 01 13:10:42 2000 > +++ gnus-art.el Sun Oct 22 22:16:24 2000 > @@ -3841,13 +3841,14 @@ > (let ((gnus-override-method gnus-override-method) > (methods (and (stringp article) > gnus-refer-article-method)) > result > (buffer-read-only nil)) > (setq methods > - (if (listp methods) > + (if (and (listp methods) > + (not (stringp (cadr methods)))) > methods > (list methods))) > (when (and (null gnus-override-method) > methods) > (setq gnus-override-method (pop methods))) > (while (not result) > > > A single nntp symbol gets "pop"ed into gnus-override-method. My fix > was inspired by the gnus-refer-article-methods function, which > performs a very similar work, but seems to do it correctly. This fix doesn't work for '(current "archive"). Neither does the gnus-refer-article-methods function. I've installed another patch in the CVS repository. ShengHuo