Search code examples
functionemacselisp

Is there a way to undefine a function in emacs lisp?


I have a macro that creates function. It creates interactive functions based on current opened buffer. However, it starts to flood the M-x after a long running section. Is there a way to make a function invalid?


Solution

  • You can use fmakunbound:

    (fmakunbound 'my-boring-function)