Function: gnus-subscribe-newsgroup

gnus-subscribe-newsgroup is a byte-compiled function defined in gnus-start.el.gz.

Signature

(gnus-subscribe-newsgroup NEWSGROUP &optional NEXT)

Documentation

Subscribe new NEWSGROUP.

If NEXT is non-nil, it is inserted before NEXT. Otherwise it is made the first newsgroup.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-start.el.gz
(defun gnus-subscribe-newsgroup (newsgroup &optional next)
  "Subscribe new NEWSGROUP.
If NEXT is non-nil, it is inserted before NEXT.  Otherwise it is made
the first newsgroup."
  (save-excursion
    (goto-char (point-min))
    ;; We subscribe the group by changing its level to `subscribed'.
    (gnus-group-change-level
     newsgroup gnus-level-default-subscribed
     gnus-level-killed next)
    (gnus-request-update-group-status newsgroup 'subscribe)
    (gnus-message 5 "Subscribe newsgroup: %s" newsgroup)
    (run-hook-with-args 'gnus-subscribe-newsgroup-functions newsgroup)
    t))