Function: ad-activate-regexp

ad-activate-regexp is an interactive and byte-compiled function defined in advice.el.gz.

Signature

(ad-activate-regexp REGEXP &optional COMPILE)

Documentation

Activate functions with an advice name containing a REGEXP match.

This activates the advice for each function that has at least one piece of advice whose name includes a match for REGEXP. See ad-activate for documentation on the optional COMPILE argument.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-activate-regexp (regexp &optional compile)
  "Activate functions with an advice name containing a REGEXP match.
This activates the advice for each function
that has at least one piece of advice whose name includes a match for REGEXP.
See `ad-activate' for documentation on the optional COMPILE argument."
  (interactive
   (list (ad-read-regexp "Activate via advice regexp")
	 current-prefix-arg))
  (ad-do-advised-functions (function)
    (if (ad-find-some-advice function 'any regexp)
	(ad-activate function compile))))