Commit 4c987d71 authored by Chong Yidong's avatar Chong Yidong
Browse files

(Kill Ring, Accumulating Text): Assume Transient Mark mode is the

default, and note that the mark is not activated when set.
parent c8388862
...@@ -217,7 +217,7 @@ the key sequence @kbd{C-S-backspace}. ...@@ -217,7 +217,7 @@ the key sequence @kbd{C-S-backspace}.
@table @kbd @table @kbd
@item C-w @item C-w
Kill region (from point to the mark) (@code{kill-region}). Kill region (@code{kill-region}). @xref{Mark}.
@item M-d @item M-d
Kill word (@code{kill-word}). @xref{Words}. Kill word (@code{kill-word}). @xref{Words}.
@item M-@key{DEL} @item M-@key{DEL}
...@@ -299,14 +299,16 @@ This is the usual way to move text from one file to another. ...@@ -299,14 +299,16 @@ This is the usual way to move text from one file to another.
@kindex C-y @kindex C-y
@findex yank @findex yank
The command @kbd{C-y} (@code{yank}) reinserts the text of the most recent The command @kbd{C-y} (@code{yank}) reinserts the text of the most
kill. It leaves the cursor at the end of the text. It sets the mark at recent kill, leaving the cursor at the end of the text. It also adds
the beginning of the text. @xref{Mark}. the position of the beginning of the text to the mark ring, without
activating the mark; this allows you to jump easily to that position
@kbd{C-u C-y} leaves the cursor in front of the text, and sets the with @kbd{C-@key{SPC}} (@pxref{Mark Ring}). With a plain prefix
mark after it. This happens only if the argument is specified with just argument (@kbd{C-u C-y}), it instead leaves the cursor in front of the
a @kbd{C-u}, precisely. Any other sort of argument, including @kbd{C-u} text, and adds the position of the end of the text to the mark ring.
and digits, specifies an earlier kill to yank (@pxref{Earlier Kills}). Using other sort of prefix argument specifies an earlier kill; for
example, @kbd{C-u 4 C-y} reinserts the fourth most recent kill.
@xref{Earlier Kills}).
@cindex yanking and text properties @cindex yanking and text properties
@vindex yank-excluded-properties @vindex yank-excluded-properties
...@@ -491,13 +493,13 @@ copy-to-buffer} is similar, except that any existing text in the other ...@@ -491,13 +493,13 @@ copy-to-buffer} is similar, except that any existing text in the other
buffer is deleted, so the buffer is left containing just the text newly buffer is deleted, so the buffer is left containing just the text newly
copied into it. copied into it.
To retrieve the accumulated text from another buffer, use the The command @kbd{M-x insert-buffer} can be used to retrieve the
command @kbd{M-x insert-buffer}; this too takes @var{buffername} as an accumulated text from another buffer. This prompts for the name of a
argument. It inserts a copy of the whole text in buffer buffer, and inserts a copy of all the text in that buffer into the
@var{buffername} into the current buffer at point, and sets the mark current buffer at point, leaving point at the beginning of the
after the inserted text. Alternatively, you can select the other inserted text. It also adds the position of the end of the inserted
buffer for editing, then copy text from it by killing. text to the mark ring, without activating the mark. @xref{Buffers},
@xref{Buffers}, for background information on buffers. for background information on buffers.
Instead of accumulating text within Emacs, in a buffer, you can append Instead of accumulating text within Emacs, in a buffer, you can append
text directly into a file with @kbd{M-x append-to-file}, which takes text directly into a file with @kbd{M-x append-to-file}, which takes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment