Function: erc--with-dependent-type-match

erc--with-dependent-type-match is a macro defined in erc-common.el.gz.

Signature

(erc--with-dependent-type-match TYPE &rest FEATURES)

Documentation

Massage Custom :type TYPE with :match function that pre-loads FEATURES.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-common.el.gz
(defmacro erc--with-dependent-type-match (type &rest features)
  "Massage Custom :type TYPE with :match function that pre-loads FEATURES."
  `(backquote-list* ',(car type)
                    :match (lambda (w v)
                             ,@(mapcar (lambda (ft) `(require ',ft)) features)
                             (,(widget-get (widget-convert type) :match) w v))
                    ',(cdr type)))