All Manuals > Editor User Guide > 4 Editing Lisp Programs

4.13 Removing definitions

These commands allow the user to remove definitions from the running Lisp image. It uses Common Lisp functionality such as fmakunbound, makunbound and remove-method to undefine Lisp functions, variables, methods and so on.

Note: This does not mean deleting the source code.

4.13.1 Undefining one definition

Undefine Editor Command

Arguments: None
Key sequence: None

Without a prefix argument, this undefines the current top level definition. That is, the defining form around or preceding the current point.

With a non-nil prefix argument, this does not undefine the definition but instead inserts into the buffer a Lisp form which, if evaluated, would undefine the definition.

Undefine Command Editor Command

Arguments: None
Key sequence: None

Prompts for the name of an Editor command, and undefines that command.

4.13.2 Removing multiple definitions

Undefine Buffer Editor Command

Arguments: None
Key sequence: None

Undefines all the definitions in the current buffer.

Undefine Region Editor Command

Arguments: None
Key sequence: None

Undefines the definitions in the current region.


Editor User Guide (Macintosh version) - 01 Dec 2021 19:35:09