Function: erc--custom-with-type-match-features
erc--custom-with-type-match-features is a macro defined in
erc-common.el.gz.
Signature
(erc--custom-with-type-match-features 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
;; The default values of some ERC's options contain items defined in
;; other libraries that may not be loaded when `setopt' is invoked on
;; the option, which results in an unfriendly warning. User configs can
;; simply `require' such dependencies beforehand, but that's often
;; undesirable in ERC's own library code.
(defmacro erc--custom-with-type-match-features (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)))