Chapter 8: Command Line Editing

121

complete-username (M-~)

Attempt completion on the text before point, treating it as a username. possible-username-completions (C-x ~)

List the possible completions of the text before point, treating it as a username. complete-variable (M-$)

Attempt completion on the text before point, treating it as a shell variable. possible-variable-completions (C-x $)

List the possible completions of the text before point, treating it as a shell variable. complete-hostname (M-@)

Attempt completion on the text before point, treating it as a hostname. possible-hostname-completions (C-x @)

List the possible completions of the text before point, treating it as a hostname. complete-command (M-!)

Attempt completion on the text before point, treating it as a command name.

Command completion attempts to match the text against aliases, reserved words, shell functions, shell builtins, and finally executable filenames, in that order. possible-command-completions (C-x !)

List the possible completions of the text before point, treating it as a command name. dynamic-complete-history (M-TAB)

Attempt completion on the text before point, comparing the text against lines from the history list for possible completion matches. dabbrev-expand ()

Attempt menu completion on the text before point, comparing the text against lines from the history list for possible completion matches. complete-into-braces (M-{)

Perform filename completion and insert the list of possible completions enclosed within braces so the list is available to the shell (see Section 3.5.1 [Brace Ex- pansion], page 21).

8.4.7 Keyboard Macros start-kbd-macro (C-x ()

Begin saving the characters typed into the current keyboard macro. end-kbd-macro (C-x ))

Stop saving the characters typed into the current keyboard macro and save the definition. call-last-kbd-macro (C-x e)

Re-execute the last keyboard macro defined, by making the characters in the macro appear as if typed at the keyboard.