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


8.3 List Manipulation

List commands are similar to form commands, but they only pay attention to lists, ignoring any atomic objects that may appear. These commands are useful because they can skip over many symbols and move up and down in the list structure.

Command: Forward List (bound to C-M-n)
Command: Backward List (bound to C-M-p)

Forward List moves the point to immediately after the end of the next list at the current level of list structure. If there is not another list at the current level, then it moves up past the end of the containing list. Backward List is identical, except that it moves backward and leaves the point at the beginning of the list. The prefix argument is used as a repeat count.

Command: Forward Up List bindC-M-)
Command: Backward Up List (bound to C-M-(, C-M-u)

Forward Up List moves to after the end of the enclosing list. Backward Up List moves to the beginning. The prefix argument is used as a repeat count.

Command: Down List (bound to C-M-d)

This command moves to just after the beginning of the next list. The prefix argument is used as a repeat count.

Command: Extract List (bound to C-M-x)

This command "extracts" the current list from the list which contains it. The outer list is deleted, leaving behind the current list. The entire affected area is pushed on the kill ring, so that this possibly catastrophic operation can be undone. The prefix argument is used as a repeat count.


Next: Defun Manipulation, Previous: Form Manipulation, Up: Editing Lisp   [Contents][Index]