Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: regexp-based group parameters
Date: 23 Feb 2001 15:54:03 -0500	[thread overview]
Message-ID: <m3itm1i0hq.fsf@multivac.student.cwru.edu> (raw)
In-Reply-To: <dzc1ysps66o.fsf_-_@pandora.inf.elte.hu> (NAGY Andras's message of "23 Feb 2001 17:41:19 +0100")

NAGY Andras <nagya@inf.elte.hu> writes:
> * Gnus functions could use a single interface to fetch group
> parameters based on both methods, without having to deal with regexp
> matching and stuff.

This is an important goal.

> * Users would be able to define every group parameter based on regexps
> as well, in addition to the group/topic method.

I'm not sure what you mean here.  But see below for my suggestion.

> * Group/topic parameters allow setting arbitrary variables, not only
> `strict' parameters.

I'm not sure this is a problem.  Your gnus-parameters doesn't seem to
address it, either.

> To demonstrate this: I cannot (but would like to) write the following
> in my .gnus:
...
> I think the example speaks for itself.  (Setting everything in one
> place, independetly of newsrc.eld and topic topology.)

Not bad, but I'm not especially fond of the regexp matching; my naming
scheme for my groups should not be determined by whether they have
similar parameters, any more than my topic hierarchy should be so
determined.

I'd like it if parameters were (or could be) stored in backends.
Backends can already use -request-update-info to correct Gnus's
parameters, so we just need a way for Gnus to notify the backend when
the user modifies the parameters.  (Then once all backends do this,
Gnus could stop redundantly storing parameters in newsrc.eld.)

Also, to provide for hierarchical inheritance, we could have a
parameter called, say, parameter-parent, whose value is a group.  Then
when trying to find the value of parameter foo, if the group doesn't
have a value for foo, you check the parent group, recursively,
stopping when you find a group that has foo, or one that has no
parent.  Dummy groups could be used to hold sets of parameters; real
groups would use the dummy as their parent.

Your suggestion (like mine) fails to cover the capability we have now
of putting a group into multiple topics, and using the parameters of
whichever topic the user entered through, but this seems like more
trouble than it's worth, especially in situations where there is no
"current" topic.

Thoughts?


paul



  parent reply	other threads:[~2001-02-23 20:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-22 16:54 Feature request: strip banners from all groups matching a regexp Christopher Splinter
2000-12-22 18:19 ` Jeff Senn
2000-12-22 20:41   ` Christopher Splinter
2000-12-22 18:27 ` Charles Sebold
2000-12-22 20:21   ` Christopher Splinter
2000-12-23 12:38     ` Kai Großjohann
2000-12-23 12:59       ` NAGY Andras
2000-12-23 13:11         ` Kai Großjohann
2001-02-23 16:41         ` regexp-based group parameters NAGY Andras
2001-02-23 18:57           ` Toby Speight
2001-02-23 20:54           ` Paul Jarc [this message]
2001-02-23 21:35             ` Kai Großjohann
2001-02-23 21:57               ` Paul Jarc
2001-02-23 22:29                 ` Kai Großjohann
2001-02-24 15:49               ` Randal L. Schwartz
2001-02-23 22:38             ` ShengHuo ZHU
2001-02-23 22:55               ` Paul Jarc
2001-02-23 23:22                 ` ShengHuo ZHU
2001-02-23 23:56                   ` Paul Jarc
2001-02-24 12:04                 ` Kai Großjohann
2001-02-24 17:34                   ` Paul Jarc
2001-02-24 21:45                     ` Kai Großjohann
2001-02-23 22:35           ` ShengHuo ZHU
2001-02-25  1:55             ` NAGY Andras
2001-02-25 15:07               ` ShengHuo ZHU
2000-12-23  2:08 ` Feature request: strip banners from all groups matching a regexp ShengHuo ZHU

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=m3itm1i0hq.fsf@multivac.student.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).