Function: ad-update

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

Signature

(ad-update FUNCTION &optional COMPILE)

Documentation

Update the advised definition of FUNCTION if its advice is active.

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-update (function &optional compile)
  "Update the advised definition of FUNCTION if its advice is active.
See `ad-activate' for documentation on the optional COMPILE argument."
  (interactive
   (list (ad-read-advised-function
	  "Update advised definition of" 'ad-is-active)))
  (if (ad-is-active function)
      (ad-activate function compile)))