Chapter 8: Command Line Editing

122

print-last-kbd-macro ()

Print the last keboard macro defined in a format suitable for the inputrc file.

8.4.8 Some Miscellaneous Commands re-read-init-file (C-x C-r)

Read in the contents of the inputrc file, and incorporate any bindings or variable assignments found there. abort (C-g)

Abort the current editing command and ring the terminal’s bell (subject to the setting of bell-style). do-uppercase-version (M-a, M-b, M-x, ...)

If the metafied character x is lowercase, run the command that is bound to the corresponding uppercase character. prefix-meta (ESC)

Metafy the next character typed. This is for keyboards without a meta key.

Typing ‘ESC f’ is equivalent to typing M-f. undo (C-_ or C-x C-u)

Incremental undo, separately remembered for each line. revert-line (M-r)

Undo all changes made to this line. This is like executing the undo command enough times to get back to the beginning. tilde-expand (M-&)

Perform tilde expansion on the current word. set-mark (C-@)

Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. exchange-point-and-mark (C-x C-x)

Swap the point with the mark. The current cursor position is set to the saved position, and the old cursor position is saved as the mark. character-search (C-])

A character is read and point is moved to the next occurrence of that character.

A negative count searches for previous occurrences. character-search-backward (M-C-])

A character is read and point is moved to the previous occurrence of that character. A negative count searches for subsequent occurrences. skip-csi-sequence ()

Read enough characters to consume a multi-key sequence such as those defined for keys like Home and End. Such sequences begin with a Control Sequence

Indicator (CSI), usually ESC-[. If this sequence is bound to "\e[", keys pro- ducing such sequences will have no effect unless explicitly bound to a readline command, instead of inserting stray characters into the editing buffer. This is unbound by default, but usually bound to ESC-[.