Gnus development mailing list
 help / color / mirror / Atom feed
* unopened-server-to-method?
@ 2001-03-27 18:32 Paul Jarc
  2001-03-27 20:35 ` unopened-server-to-method? Kai Großjohann
  2001-03-27 20:47 ` unopened-server-to-method? Simon Josefsson
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Jarc @ 2001-03-27 18:32 UTC (permalink / raw)


Is there any way for nnfoo-open-server to get hold of the select
method it's trying to open?  gnus-server-to-method won't necessarily
find it, since the server isn't open yet.


paul


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 18:32 unopened-server-to-method? Paul Jarc
@ 2001-03-27 20:35 ` Kai Großjohann
  2001-03-27 20:39   ` unopened-server-to-method? Paul Jarc
  2001-03-27 20:47 ` unopened-server-to-method? Simon Josefsson
  1 sibling, 1 reply; 9+ messages in thread
From: Kai Großjohann @ 2001-03-27 20:35 UTC (permalink / raw)


On 27 Mar 2001, Paul Jarc wrote:

> Is there any way for nnfoo-open-server to get hold of the select
> method it's trying to open?  gnus-server-to-method won't necessarily
> find it, since the server isn't open yet.

But nnchoke-open-server has arguments SERVER and PARAMETERS or
suchlike, and SERVER is the server name; what more do you want?  You
can look up the parameters in PARAMETERS.

kai
-- 
Be indiscrete.  Do it continuously.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 20:35 ` unopened-server-to-method? Kai Großjohann
@ 2001-03-27 20:39   ` Paul Jarc
  2001-03-28 11:23     ` unopened-server-to-method? Kai Großjohann
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Jarc @ 2001-03-27 20:39 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> On 27 Mar 2001, Paul Jarc wrote:
> > Is there any way for nnfoo-open-server to get hold of the select
> > method it's trying to open?  gnus-server-to-method won't necessarily
> > find it, since the server isn't open yet.
> 
> But nnchoke-open-server has arguments SERVER and PARAMETERS or
> suchlike, and SERVER is the server name; what more do you want?  You
> can look up the parameters in PARAMETERS.

I want the select method that SERVER and PARAMETERS came from, so that
I can pass it back to various gnus functions that expect a select
method as an argument.  gnus-group-prefixed-name, for example.  (In
that case, I could pass the prefixed server name instead, but then
gnus-group-prefixed-name would just try to find the select method
itself.)


paul


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 18:32 unopened-server-to-method? Paul Jarc
  2001-03-27 20:35 ` unopened-server-to-method? Kai Großjohann
@ 2001-03-27 20:47 ` Simon Josefsson
  2001-03-27 20:59   ` unopened-server-to-method? Paul Jarc
  1 sibling, 1 reply; 9+ messages in thread
From: Simon Josefsson @ 2001-03-27 20:47 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Is there any way for nnfoo-open-server to get hold of the select
> method it's trying to open?  gnus-server-to-method won't necessarily
> find it, since the server isn't open yet.

I think the parameters of the select method should be in `defs'.  Is
it not?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 20:47 ` unopened-server-to-method? Simon Josefsson
@ 2001-03-27 20:59   ` Paul Jarc
  2001-03-27 21:43     ` unopened-server-to-method? Simon Josefsson
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Jarc @ 2001-03-27 20:59 UTC (permalink / raw)


Simon Josefsson <simon@josefsson.org> writes:
> prj@po.cwru.edu (Paul Jarc) writes:
> > Is there any way for nnfoo-open-server to get hold of the select
> > method it's trying to open?  gnus-server-to-method won't necessarily
> > find it, since the server isn't open yet.
> 
> I think the parameters of the select method should be in `defs'.  Is
> it not?

It is, but that's not what I'm looking for.  I want the select method
whose cadr is SERVER and whose cddr is DEFINITIONS, so I can pass it
back to Gnus functions that expect a select method.


paul


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 20:59   ` unopened-server-to-method? Paul Jarc
@ 2001-03-27 21:43     ` Simon Josefsson
  2001-03-27 21:47       ` unopened-server-to-method? Paul Jarc
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Josefsson @ 2001-03-27 21:43 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Simon Josefsson <simon@josefsson.org> writes:
> > prj@po.cwru.edu (Paul Jarc) writes:
> > > Is there any way for nnfoo-open-server to get hold of the select
> > > method it's trying to open?  gnus-server-to-method won't necessarily
> > > find it, since the server isn't open yet.
> > 
> > I think the parameters of the select method should be in `defs'.  Is
> > it not?
> 
> It is, but that's not what I'm looking for.  I want the select method
> whose cadr is SERVER and whose cddr is DEFINITIONS, so I can pass it
> back to Gnus functions that expect a select method.

Perhaps (cons 'nnfoo (cons SERVER DEFS))?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 21:43     ` unopened-server-to-method? Simon Josefsson
@ 2001-03-27 21:47       ` Paul Jarc
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Jarc @ 2001-03-27 21:47 UTC (permalink / raw)


Simon Josefsson <simon@josefsson.org> writes:
> prj@po.cwru.edu (Paul Jarc) writes:
> > I want the select method whose cadr is SERVER and whose cddr is
> > DEFINITIONS, so I can pass it back to Gnus functions that expect a
> > select method.
> 
> Perhaps (cons 'nnfoo (cons SERVER DEFS))?

Perhaps.  But perhaps not.  It wouldn't be eq to the actual select
method; I don't know whether this would cause any problems.

I guess I'll just use gnus-server-to-method, but I'll have to do it
after -open-server returns.  That'll be a little bit messy, but it
should work.


paul


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-27 20:39   ` unopened-server-to-method? Paul Jarc
@ 2001-03-28 11:23     ` Kai Großjohann
  2001-03-28 15:46       ` unopened-server-to-method? Paul Jarc
  0 siblings, 1 reply; 9+ messages in thread
From: Kai Großjohann @ 2001-03-28 11:23 UTC (permalink / raw)


On 27 Mar 2001, Paul Jarc wrote:

> I want the select method that SERVER and PARAMETERS came from, so
> that I can pass it back to various gnus functions that expect a
> select method as an argument.  gnus-group-prefixed-name, for
> example.  (In that case, I could pass the prefixed server name
> instead, but then gnus-group-prefixed-name would just try to find
> the select method itself.)

Does it work to say (format "nnchoke:%s" SERVER)?  That would be the
server _name_, though.

kai
-- 
Be indiscrete.  Do it continuously.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: unopened-server-to-method?
  2001-03-28 11:23     ` unopened-server-to-method? Kai Großjohann
@ 2001-03-28 15:46       ` Paul Jarc
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Jarc @ 2001-03-28 15:46 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
> On 27 Mar 2001, Paul Jarc wrote:
> > I want the select method that SERVER and PARAMETERS came from, so
> > that I can pass it back to various gnus functions that expect a
> > select method as an argument.  gnus-group-prefixed-name, for
> > example.  (In that case, I could pass the prefixed server name
> > instead, but then gnus-group-prefixed-name would just try to find
> > the select method itself.)
> 
> Does it work to say (format "nnchoke:%s" SERVER)?  That would be the
> server _name_, though.

Right, so that's what I pass to gnus-server-to-method.  I'll just have
to do it after -open-server returns.


paul


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-03-28 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-27 18:32 unopened-server-to-method? Paul Jarc
2001-03-27 20:35 ` unopened-server-to-method? Kai Großjohann
2001-03-27 20:39   ` unopened-server-to-method? Paul Jarc
2001-03-28 11:23     ` unopened-server-to-method? Kai Großjohann
2001-03-28 15:46       ` unopened-server-to-method? Paul Jarc
2001-03-27 20:47 ` unopened-server-to-method? Simon Josefsson
2001-03-27 20:59   ` unopened-server-to-method? Paul Jarc
2001-03-27 21:43     ` unopened-server-to-method? Simon Josefsson
2001-03-27 21:47       ` unopened-server-to-method? Paul Jarc

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).