Common Lisp Interface Manager 2.0 User's Guide > Chapter 16 Input Editing and Completion Facilities > 16.1 Input Editing

NextPrevUpTopContentsIndex

16.1.2 Input Editor Commands

Keyboard input to accept can be edited until an activation character is typed to terminate it. If the input cannot be parsed after an activation character is entered, it must be edited and re-activated. The input editor has several keystroke commands, as listed in Table 4., Input Editor Keystroke Commands. Prefix numeric arguments to input editor commands can be entered using digits and the minus sign (-) with CONTROL and META (as in Emacs).

The function :add-input-editor-command can be used to bind one or more keys to an input editor command. Any character can be an input editor command, but by convention only non-graphic characters should be used.

Input Editor Keystroke Commands

Command

Character

Command

Character

Forward character

C-f

Delete previous character

Rubout

Forward word

M-f

Delete previous word

M-Rubout

Backward character

C-b

Kill to end of line

C-k

Backward word

M-b

Clear input buffer

LispWorks: C-backspace
Liquid: C-M-delete

Beginning of line

C-a

Insert new line

C-o

End of line

C-e

Transpose adjacent characters

C-t

Next line

C-n

Transpose adjacent words

M-t

Previous line

C-p

Yank from kill ring

C-y

Beginning of buffer

M-<

Yank from presentation history

C-M-y

End of buffer

M->

Yank next item

M-y

Delete next character

C-d

Scroll output history forward

C-v

Delete next word

M-d

Scroll output history backward

M-v

The input also supports "numeric arguments" (such as C-0 , C-1 , M-0 , etc.) that modify the behavior of the input editing commands. For instance, the motion and deletion commands will be repeated as many times as specified by the numeric argument. Furthermore, the accumulated numeric argument will be passed to the command processor in such a way that substitute-numerical-marker can be used to insert the numeric argument into a command that was read via a keystroke accelerator.


Common Lisp Interface Manager 2.0 User's Guide - 22 Dec 2009

NextPrevUpTopContentsIndex