-->

Previous | Table of Contents | Next

Page 30

Commands for Manipulating the History

accept_line (Newline, Return) Accept the line regardless of where the cursor is. If this line is non_empty, add it to the history list according to the state of the HIST-CONTROL variable. If the line is a modified history line, then restore the history line to its original state.
previous_history (C_p) Fetch the previous command from the history list, moving back in the list.
next_history (C_n) Fetch the next command from the history list, moving forward in the list.
beginning_of_history (M_<) Move to the first line in the history.
end_of_history (M_>) Move to the end of the input history, that is, the line currently being entered.
reverse_search_history (C_r) Search backward starting at the current line and moving "up" through the history as necessary. This is an incremental search.
forward_search_history (C_s) Search forward starting at the current line and moving "down" through the history as necessary. This is an incremental search.
non_incremental_reverse_ search_history (M_p) Search backward through the history, starting at the current line using a non_ incremental search for a string supplied by the user.
non_incremental_forward_ search_history (M_n) Search forward through the history using a nonincremental search for a string supplied by the user.
history_search_forward Search forward through the history for the string of characters between the start of the current line and the current point. This is a nonincremental search. By default, this command is unbound.
history_search_backward Search backward through the history for the string of characters between the start of the current line and the current point. This is a nonincremental search. By default, this command is unbound.
yank_nth_arg (M_C_y) Insert the first argument to the previous command (usually the second word on the previous line) at point (the current cursor position). With an argument n, insert the nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the nth word from the end of the previous command.
yank_last_arg (M_., M__) Insert the last argument to the previous command (the last word on the previous line). With an argument, behave exactly like @codefyank-nth-argg.
shell_expand_line (M_C_e) Expand the line the way the shell does when it reads it. This performs alias and history expansion as well as all of the shell word expansions. See "History Expansion," later in this manual page, for a description of history expansion.
history_expand_line (M_^) Perform history expansion on the current line. See "History Expansion."
insert_last_argument (M_., M__) A synonym for yank_last_arg.
operate-and-get-next (C_o) Accept the current line for execution and fetch the next line relative to the current line from the history for editing. Any argument is ignored.

Commands for Changing Text

delete_char (C_d) Delete the character under the cursor. If point is at the beginning of the line, there are no characters in the line, and the last character typed was not C_d, then return EOF.
backward_delete_char (Rubout) Delete the character behind the cursor. When given a numeric argument, save the deleted text on the kill_ring.
quoted_insert (C_q, C_v) Add the next character that you type to the line verbatim. This is how to insert characters like C_q, for example.
tab_insert (C-v Tab) Insert a tab character.
self_insert (a, b, A, 1, !, ...) Insert the character typed.

Previous | Table of Contents | Next