From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32959 Path: main.gmane.org!not-for-mail From: Stefan Wiens Newsgroups: gmane.emacs.gnus.general Subject: Problem with gnus-refer-article-method Date: 24 Oct 2000 23:55:10 +0200 Organization: ... Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169154 22681 80.91.224.250 (21 Oct 2002 02:59:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:59:14 +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 5B988D049A for ; Tue, 24 Oct 2000 17:59:14 -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 QAB06703; Tue, 24 Oct 2000 16:57:54 -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 16:57:07 -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 QAA27172 for ; Tue, 24 Oct 2000 16:56:53 -0500 (CDT) Original-Received: from quimby.gnus.org (quimby.gnus.org [195.204.10.139]) by mailhost.sclp.com (Postfix) with ESMTP id 2A80CD049A for ; Tue, 24 Oct 2000 17:57:17 -0400 (EDT) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id WAA00117 for ding@gnus.org; Tue, 24 Oct 2000 22:59:34 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 41 Original-NNTP-Posting-Host: 149.225.157.249 Original-X-Trace: quimby.gnus.org 972421174 27928 149.225.157.249 (24 Oct 2000 20:59:34 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 24 Oct 2000 20:59:34 GMT User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32959 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. Stefan