Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 998
tom Avatar asked Feb 26 '16 11:02

tom


People also ask

What is defun in Lisp?

defun is the usual way to define new Lisp functions. It defines the symbol name as a function with argument list args (see Features of Argument Lists) and body forms given by body . Neither name nor args should be quoted.

Is Emacs Lisp the same as Lisp?

Emacs Lisp is a dialect of the Lisp programming language used as a scripting language by Emacs (a text editor family most commonly associated with GNU Emacs and XEmacs). It is used for implementing most of the editing functionality built into Emacs, the remainder being written in C, as is the Lisp interpreter.


1 Answers

You can use fmakunbound:

(fmakunbound 'my-boring-function)
like image 170
legoscia Avatar answered Oct 18 '22 18:10

legoscia