Function: shadow-set-cluster
shadow-set-cluster is a byte-compiled function defined in
shadowfile.el.gz.
Signature
(shadow-set-cluster NAME PRIMARY REGEXP)
Documentation
Put cluster NAME on the list of clusters.
Replace old definition, if any. PRIMARY and REGEXP are the
information defining the cluster. For interactive use, call
shadow-define-cluster instead.
Source Code
;; Defined in /usr/src/emacs/lisp/shadowfile.el.gz
(defun shadow-set-cluster (name primary regexp)
"Put cluster NAME on the list of clusters.
Replace old definition, if any. PRIMARY and REGEXP are the
information defining the cluster. For interactive use, call
`shadow-define-cluster' instead."
(let ((rest (cl-remove-if (lambda (x) (equal name (shadow-cluster-name x)))
shadow-clusters)))
(setq shadow-clusters
(cons (make-shadow-cluster :name name :primary primary :regexp regexp)
rest))))