Function: nnmairix-group-toggle-parameter

nnmairix-group-toggle-parameter is a byte-compiled function defined in nnmairix.el.gz.

Signature

(nnmairix-group-toggle-parameter GROUP PARAMETER DESCRIPTION &optional PAR)

Documentation

Toggle on GROUP a certain PARAMETER.

DESCRIPTION will be shown to the user with the activation status. If PAR is a positive number, the group parameter will be set to t and to nil otherwise.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnmairix.el.gz
(defun nnmairix-group-toggle-parameter (group parameter description &optional par)
  "Toggle on GROUP a certain PARAMETER.
DESCRIPTION will be shown to the user with the activation
status.  If PAR is a positive number, the group parameter will be
set to t and to nil otherwise."
  (let* ((method (gnus-find-method-for-group group))
	 (par (or par
		  (not (gnus-group-get-parameter group parameter)))))
    (if (eq (car method) 'nnmairix)
	(progn
	  (when (numberp par)
	    (setq par (> par 0)))
	  (gnus-group-set-parameter group parameter par)
	  (if par
	      (message "%s activated for group %s" description group)
	    (message "%s deactivated for group %s" description group))
	  t)
      (error "This is no nnmairix group")
      nil)))