Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@pdc.kth.se>
Cc: ding@gnus.org
Subject: Re: Huh?  "Trying to require a method that doesn't exist"?
Date: 24 Dec 1998 02:12:07 +0100	[thread overview]
Message-ID: <ilu3e66s5qw.fsf@xiphias.pdc.kth.se> (raw)
In-Reply-To: <vxku2ymshvj.fsf@beaver.jprc.com>

Karl Kleinpaste <karl@justresearch.com> 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."




  reply	other threads:[~1998-12-24  1:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-23 20:50 Karl Kleinpaste
1998-12-24  1:12 ` Simon Josefsson [this message]
1998-12-25  0:34   ` Karl Kleinpaste

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ilu3e66s5qw.fsf@xiphias.pdc.kth.se \
    --to=jas@pdc.kth.se \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).