Function: ad-recover-all

ad-recover-all is an interactive and byte-compiled function defined in advice.el.gz.

Signature

(ad-recover-all)

Documentation

Recover all currently advised functions. Use in emergencies.

To recover a function means to try to find its original (pre-advice) definition, and delete all advice. This is more low-level than ad-unadvise in that it does not do deactivation, which might run hooks and get into other trouble.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/advice.el.gz
(defun ad-recover-all ()
  "Recover all currently advised functions.  Use in emergencies.
To recover a function means to try to find its original (pre-advice)
definition, and delete all advice.
This is more low-level than `ad-unadvise' in that it does not do
deactivation, which might run hooks and get into other trouble."
  (interactive)
  (ad-do-advised-functions (function)
    (condition-case nil
	(ad-recover function)
      (error nil))))