Function: gnus-subscribe-topics
gnus-subscribe-topics is an autoloaded and byte-compiled function
defined in gnus-topic.el.gz.
Signature
(gnus-subscribe-topics NEWSGROUP)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-topic.el.gz
(defun gnus-subscribe-topics (newsgroup)
(catch 'end
(let (match gnus-group-change-level-function)
(dolist (topic (gnus-topic-list))
(when (and (setq match (cdr (assq 'subscribe
(gnus-topic-parameters topic))))
(string-match match newsgroup))
;; Just subscribe the group.
(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)))