Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Group subscribe tab-completion
@ 2006-04-20 18:28 xyblor
  2006-04-20 18:50 ` Karl Kleinpaste
  0 siblings, 1 reply; 5+ messages in thread
From: xyblor @ 2006-04-20 18:28 UTC (permalink / raw)


When I want to subscribe to a newsgroup with "U", tab-completion does
not work, unless I have read the active file with "A A" or
"b". Otherwise, the only valid completions are the groups I have
already subscribed to.

The Gnus tutorial led me to believe that tab-completion should always
work, so I wonder if something's wrong. Shouldn't the newsrc.eld file
save a list of all the available newsgroups, so I don't have to read
the whole active file every time? I suspect this isn't happening
since it is very small (4 KB).

Thanks for any advice.

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

* Re: Group subscribe tab-completion
  2006-04-20 18:28 Group subscribe tab-completion xyblor
@ 2006-04-20 18:50 ` Karl Kleinpaste
  2006-04-20 19:44   ` xyblor
  0 siblings, 1 reply; 5+ messages in thread
From: Karl Kleinpaste @ 2006-04-20 18:50 UTC (permalink / raw)


xyblor <fake@invalid.email> writes:
> Shouldn't the newsrc.eld file save a list of all the available
> newsgroups, so I don't have to read the whole active file every time?

Saving the entire list of groups is a very expensive (in bandwidth and
storage space) thing to do because there are tens of thousands of
groups known to large installations; far too heavy a cost to outweigh
the small benefit of the very occasional time that one really wants
that list.  (Even on my small server, the active file is half a
megabyte.)

However, rather than using `U', you might try going into server mode,
via `^' in *Group*, and then selecting the server you want to examine
with SPC.  That will induce retrieval, and you can search and
subscribe (and preview, for that matter) to your heart's content.

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

* Re: Group subscribe tab-completion
  2006-04-20 18:50 ` Karl Kleinpaste
@ 2006-04-20 19:44   ` xyblor
  2006-04-20 19:56     ` xyblor
  0 siblings, 1 reply; 5+ messages in thread
From: xyblor @ 2006-04-20 19:44 UTC (permalink / raw)


Karl Kleinpaste <karl@charcoal.com> writes:

> xyblor <fake@invalid.email> writes:
>> Shouldn't the newsrc.eld file save a list of all the available
>> newsgroups, so I don't have to read the whole active file every time?
>
> Saving the entire list of groups is a very expensive (in bandwidth and
> storage space) thing to do because there are tens of thousands of
> groups known to large installations; far too heavy a cost to outweigh
> the small benefit of the very occasional time that one really wants
> that list.  (Even on my small server, the active file is half a
> megabyte.)

I'm not proposing to download the entire active file every time I
start gnus, I just want to save it once so that tab-completion
works. I thought that was how it's supposed to work; then any new
groups added to the server would be added to the list in .newsrc
according to gnus-check-new-newsgroups. 

This arrangement should use *less* bandwidth, since I would only
download the list once, instead of every time I want to browse it.

I'm confused about all this; maybe I'll look in the "Agent" menu,
since it seems like I'm trying to do something "unplugged". Thanks for
the tip about server mode.

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

* Re: Group subscribe tab-completion
  2006-04-20 19:44   ` xyblor
@ 2006-04-20 19:56     ` xyblor
  2006-04-20 22:46       ` xyblor
  0 siblings, 1 reply; 5+ messages in thread
From: xyblor @ 2006-04-20 19:56 UTC (permalink / raw)


xyblor <fake@invalid.email> writes:

>>> Shouldn't the newsrc.eld file save a list of all the available
>>> newsgroups, so I don't have to read the whole active file every time?

Actually, it seems that gnus *is* saving the active file to disk in
~/News/agent/nntp/server.name/agent.lib/active (it's over 2 MB).

So why can't it consult that file for tab-completion when I subscribe
to a group?

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

* Re: Group subscribe tab-completion
  2006-04-20 19:56     ` xyblor
@ 2006-04-20 22:46       ` xyblor
  0 siblings, 0 replies; 5+ messages in thread
From: xyblor @ 2006-04-20 22:46 UTC (permalink / raw)


xyblor <fake@invalid.email> writes:

> xyblor <fake@invalid.email> writes:
>
>>>> Shouldn't the newsrc.eld file save a list of all the available
>>>> newsgroups, so I don't have to read the whole active file every time?
>
> Actually, it seems that gnus *is* saving the active file to disk in
> ~/News/agent/nntp/server.name/agent.lib/active (it's over 2 MB).
>
> So why can't it consult that file for tab-completion when I subscribe
> to a group?

To answer my own question somewhat, it seems that gnus *can* read the
the active file for tab-completion - the problem is that gnus is
destroying its contents whenever it loads or quits.

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

end of thread, other threads:[~2006-04-20 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 18:28 Group subscribe tab-completion xyblor
2006-04-20 18:50 ` Karl Kleinpaste
2006-04-20 19:44   ` xyblor
2006-04-20 19:56     ` xyblor
2006-04-20 22:46       ` xyblor

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