Function: elp-restore-function
elp-restore-function is an interactive and byte-compiled function
defined in elp.el.gz.
Signature
(elp-restore-function FUNSYM)
Documentation
Restore an instrumented function to its original definition.
Argument FUNSYM is the symbol of a defined function.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/elp.el.gz
(defun elp-restore-function (funsym)
"Restore an instrumented function to its original definition.
Argument FUNSYM is the symbol of a defined function."
(interactive
(list
(intern
(completing-read "Function to restore: " obarray
#'elp--instrumented-p t))))
;; If the function was the master, reset the master.
(if (eq funsym elp-master)
(setq elp-master nil
elp-record-p t))
;; Zap the properties.
(put funsym elp-timer-info-property nil)
(advice-remove funsym elp--advice-name))