From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/20014 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Huh? "Trying to require a method that doesn't exist"? Date: 24 Dec 1998 02:12:07 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035158309 14902 80.91.224.250 (20 Oct 2002 23:58:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:58:29 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id VAA18449 for ; Wed, 23 Dec 1998 21:29:51 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id UAB03837; Wed, 23 Dec 1998 20:29:36 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 23 Dec 1998 20:27:18 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id UAA05020 for ; Wed, 23 Dec 1998 20:27:10 -0600 (CST) Original-Received: from xiphias.pdc.kth.se (xiphias.pdc.kth.se [130.237.221.226]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id VAA18403 for ; Wed, 23 Dec 1998 21:27:00 -0500 (EST) Original-Received: (from jas@localhost) by xiphias.pdc.kth.se (8.8.5/8.8.5) id DAA10127; Thu, 24 Dec 1998 03:26:42 +0100 (MET) Original-To: Karl Kleinpaste Mail-Copies-To: never Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 37 Xref: main.gmane.org gmane.emacs.gnus.general:20014 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:20014 Karl Kleinpaste writes: > The specific calling sequence which leads to this is: > gnus-activate-group -> gnus-find-method-for-group -> gnus-server-to-method > The group information obtained certainly appears correct, at first > glance, as reported during edebug of gnus-find-method-for-group: > ("nnml:personal.jprc" 1 ((1 . 1)) nil "nnml:") Yup, `gnus-server-to-method' fail to map a virtual server name to a method if the server hasn't been opened (which typically would be the case if you do `gnus-no-server'). Could you try this patch? (Another fix would be to revert my patch in 0.52, but then you'd have to fix `u' in the browse server buffer. And you also wouldn't have the feature of being able to edit your `gnus-secondary-select-methods' and have the new setting take effect on your old folders.) --- lisp/gnus.el- Thu Dec 24 01:22:38 1998 +++ lisp/gnus.el Thu Dec 24 02:42:13 1998 @@ -2365,7 +2365,14 @@ (not (equal server (format "%s:%s" (caaar opened) (cadaar opened))))) (pop opened)) - (caar opened)))) + (caar opened)) + ;; It could be a named method, search all servers + (let ((servers gnus-secondary-select-methods)) + (while (and servers + (not (equal server (format "%s:%s" (caar servers) + (cadar servers))))) + (pop servers)) + (car servers)))) (defmacro gnus-method-equal (ss1 ss2) "Say whether two servers are equal."