Function: untrace-function
untrace-function is an interactive and byte-compiled function defined
in trace.el.gz.
Signature
(untrace-function FUNCTION)
Documentation
Untraces FUNCTION and possibly activates all remaining advice.
Activation is performed with ad-update, hence remaining advice will get
activated only if the advice of FUNCTION is currently active. If FUNCTION
was not traced this is a noop.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/trace.el.gz
(defun untrace-function (function)
"Untraces FUNCTION and possibly activates all remaining advice.
Activation is performed with `ad-update', hence remaining advice will get
activated only if the advice of FUNCTION is currently active. If FUNCTION
was not traced this is a noop."
(interactive
(list (intern (completing-read "Untrace function: "
obarray #'trace-is-traced t))))
(advice-remove function trace-advice-name))