Function: gnus-browse-toggle-subscription-at-point

gnus-browse-toggle-subscription-at-point is an interactive and byte-compiled function defined in gnus-srvr.el.gz.

Signature

(gnus-browse-toggle-subscription-at-point ARG)

Documentation

(Un)subscribe to the next ARG groups.

The variable gnus-browse-subscribe-newsgroup-method determines how new groups will be entered into the group buffer.

Key Bindings

Aliases

gnus-browse-unsubscribe-current-group (obsolete since 28.1)

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-srvr.el.gz
(defun gnus-browse-toggle-subscription-at-point (arg)
  "(Un)subscribe to the next ARG groups.
The variable `gnus-browse-subscribe-newsgroup-method' determines
how new groups will be entered into the group buffer."
  (interactive "p" gnus-browse-mode)
  (when (eobp)
    (error "No group at current line"))
  (let ((ward (if (< arg 0) -1 1))
	(arg (abs arg)))
    (while (and (> arg 0)
		(not (eobp))
		(gnus-browse-toggle-subscription)
		(zerop (gnus-browse-next-group ward)))
      (cl-decf arg))
    (gnus-group-position-point)
    (when (/= 0 arg)
      (gnus-message 7 "No more newsgroups"))
    arg))