Function: ad-deactivate-regexp

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

Signature

(ad-deactivate-regexp REGEXP)

Documentation

Deactivate functions with an advice name containing REGEXP match.

This deactivates the advice for each function that has at least one piece of advice whose name includes a match for REGEXP.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-deactivate-regexp (regexp)
  "Deactivate functions with an advice name containing REGEXP match.
This deactivates the advice for each function
that has at least one piece of advice whose name includes a match for REGEXP."
  (interactive
   (list (ad-read-regexp "Deactivate via advice regexp")))
  (ad-do-advised-functions (function)
    (if (ad-find-some-advice function 'any regexp)
	(ad-deactivate function))))