Function: ad-enable-regexp
ad-enable-regexp is an interactive and byte-compiled function defined
in advice.el.gz.
Signature
(ad-enable-regexp REGEXP)
Documentation
Enables all advices with names that contain a match for REGEXP.
All currently advised functions will be considered.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-enable-regexp (regexp)
"Enables all advices with names that contain a match for REGEXP.
All currently advised functions will be considered."
(interactive
(list (ad-read-regexp "Enable advices via regexp")))
(let ((matched-advices (ad-enable-regexp-internal regexp 'any t)))
(if (called-interactively-p 'interactive)
(message "%d matching advices enabled" matched-advices))
matched-advices))