Next: , Previous: , Up: Editing Lisp   [Contents][Index]


8.4 Defun Manipulation

A defun is a list whose open parenthesis is against the left margin. It is called this because an occurrence of the defun top level form usually satisfies this definition, but other top level forms such as a defstruct and defmacro work just as well.

Command: End of Defun (bound to C-M-e, C-M-])
Command: Beginning of Defun (bound to C-M-a, C-M-[)

End of Defun moves to the end of the current or next defun. Beginning of Defun moves to the beginning of the current or previous defun. End of Defun will not work if the parentheses are not balanced.

Command: Mark Defun (bound to C-M-h)

This command puts the point at the beginning and the mark at the end of the current or next defun.


Next: Indentation, Previous: List Manipulation, Up: Editing Lisp   [Contents][Index]