From da739658c3ffef5158086a611e7b0a77e12550c1 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 14 Dec 2001 09:50:03 +0000 Subject: [PATCH] Synch with Oort Gnus. --- lisp/ChangeLog | 6 ++++++ lisp/gnus-cus.el | 7 ++++++- lisp/gnus-topic.el | 6 ++++++ texi/gnus-ja.texi | 8 +++++++- texi/gnus.texi | 5 +++++ 5 files changed, 30 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4aa25d6..5c69821 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2001-12-13 Josh Huber + + * gnus-cus.el (gnus-extra-topic-parameters): added topic parameter + subscribe-level + * gnus-topic.el (gnus-subscribe-topics): use it. + 2001-12-13 22:00:00 ShengHuo ZHU * gnus-msg.el (gnus-summary-mail-forward): Forward all marked diff --git a/lisp/gnus-cus.el b/lisp/gnus-cus.el index f58e369..6df3ffa 100644 --- a/lisp/gnus-cus.el +++ b/lisp/gnus-cus.el @@ -242,7 +242,12 @@ DOC is a documentation string for the parameter.") If `gnus-subscribe-newsgroup-method' or `gnus-subscribe-options-newsgroup-method' is set to `gnus-subscribe-topics', new groups that matches this regexp will -automatically be subscribed to this topic")) +automatically be subscribed to this topic") + (subscribe-level (integer :tag "Subscribe Level" :value 1) "\ +If this topic parameter is set, when new groups are subscribed +automatically under this topic (via the `subscribe' topic parameter) +assign this level to the group, rather than the default level +set in `gnus-level-default-subscribed'")) "Alist of topic parameters that are not also group parameters. Each entry has the form (NAME TYPE DOC), where NAME is the parameter diff --git a/lisp/gnus-topic.el b/lisp/gnus-topic.el index ccd9b42..99958a8 100644 --- a/lisp/gnus-topic.el +++ b/lisp/gnus-topic.el @@ -1691,6 +1691,12 @@ If REVERSE, reverse the sorting order." (gnus-subscribe-alphabetically newsgroup) ;; Add the group to the topic. (nconc (assoc topic gnus-topic-alist) (list newsgroup)) + ;; if this topic specifies a default level, use it + (let ((subscribe-level (cdr (assq 'subscribe-level + (gnus-topic-parameters topic))))) + (when subscribe-level + (gnus-group-change-level newsgroup subscribe-level + gnus-level-default-subscribed))) (throw 'end t))) nil))) diff --git a/texi/gnus-ja.texi b/texi/gnus-ja.texi index 65b33d4..330a1ab 100644 --- a/texi/gnus-ja.texi +++ b/texi/gnus-ja.texi @@ -3839,9 +3839,15 @@ Gnus @table @code @item subscribe トピックで新しいグループを購読している場 -合 (@pxref{Subscription Methods}), @code{subscribe} トピックパラメータは +合 (@pxref{Subscription Methods})、@code{subscribe} トピックパラメータは どのグループがどのトピックに行くかを指定します。値はそのトピックに行くグ ループに合致する正規表現である必要があります。 + +@item subscribe-level +トピックで新しいグループを購読している場 +合 (@code{subscribe} パラメータを参照)、そのグループの購読度のレベル +は @code{gnus-level-default-subscribed} の代わり +に @code{subscribe-level} トピックパラメータの値になります。 @end table グループパラメータは (もちろん) トピックパラメータよりも優先され、副トピッ diff --git a/texi/gnus.texi b/texi/gnus.texi index 9a7b003..27d5577 100644 --- a/texi/gnus.texi +++ b/texi/gnus.texi @@ -3783,6 +3783,11 @@ When subscribing new groups by topic (@pxref{Subscription Methods}), the value should be a regexp to match the groups that should go in that topic. +@item subscribe-level +When subscribing new groups by topic (see the @code{subscribe} parameter), +the group will be subscribed with the level specified in the +@code{subscribe-level} instead of @code{gnus-level-default-subscribed}. + @end table Group parameters (of course) override topic parameters, and topic -- 1.7.10.4