3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"Readline%20Killing%20Commands">Readline Killing Commands
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Readline-Arguments.html#Readline%20Arguments">Readline Arguments
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Readline-Movement-Commands.html#Readline%20Movement%20Commands">Readline Movement Commands
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Readline-Interaction.html#Readline%20Interaction">Readline Interaction
</a>
19 <h4 class=
"subsection">Readline Killing Commands
</h4>
21 <p><dfn>Killing
</dfn> text means to delete the text from the line, but to save
22 it away for later use, usually by
<dfn>yanking
</dfn> (re-inserting)
23 it back into the line.
24 (`Cut' and `paste' are more recent jargon for `kill' and `yank'.)
26 <p>If the description for a command says that it `kills' text, then you can
27 be sure that you can get the text back in a different (or the same)
30 <p>When you use a kill command, the text is saved in a
<dfn>kill-ring
</dfn>.
31 Any number of consecutive kills save all of the killed text together, so
32 that when you yank it back, you get it all. The kill
33 ring is not line specific; the text that you killed on a previously
34 typed line is available to be yanked back later, when you are typing
37 <p>Here is the list of commands for killing text.
41 <dd>Kill the text from the current cursor position to the end of the line.
43 <br><dt><kbd>M-d
</kbd>
44 <dd>Kill from the cursor to the end of the current word, or, if between
45 words, to the end of the next word.
46 Word boundaries are the same as those used by
<kbd>M-f
</kbd>.
48 <br><dt><kbd>M-
<DEL
></kbd>
49 <dd>Kill from the cursor the start of the previous word, or, if between
50 words, to the start of the previous word.
51 Word boundaries are the same as those used by
<kbd>M-b
</kbd>.
53 <br><dt><kbd>C-w
</kbd>
54 <dd>Kill from the cursor to the previous whitespace. This is different than
55 <kbd>M-
<DEL
></kbd> because the word boundaries differ.
59 <p>Here is how to
<dfn>yank
</dfn> the text back into the line. Yanking
60 means to copy the most-recently-killed text from the kill buffer.
64 <dd>Yank the most recently killed text back into the buffer at the cursor.
66 <br><dt><kbd>M-y
</kbd>
67 <dd>Rotate the kill-ring, and yank the new top. You can only do this if
68 the prior command is
<kbd>C-y
</kbd> or
<kbd>M-y
</kbd>.