I cannot find a predefined command in nadvice
to easily unadvise a function in Emacs 24.5.1.
Something like:
(defun advice-unadvice (sym)
"Remove all advices from symbol SYM."
(interactive "aFunction symbol:")
(advice-mapc `(lambda (fun props) (advice-remove ,(quote sym) fun)) sym))
Is there such a thing predefined?