aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChong Yidong2008-03-28 19:04:14 +0000
committerChong Yidong2008-03-28 19:04:14 +0000
commit4c987d7128087de46f87cfb9b0eebe837e7b4cc7 (patch)
tree2a843826aa2a9a5786056f56f535dac482113a1e /doc
parentc838886252b18058bda047d00e883011ccd87a72 (diff)
downloademacs-4c987d7128087de46f87cfb9b0eebe837e7b4cc7.tar.gz
emacs-4c987d7128087de46f87cfb9b0eebe837e7b4cc7.zip
(Kill Ring, Accumulating Text): Assume Transient Mark mode is the
default, and note that the mark is not activated when set.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/killing.texi34
1 files changed, 18 insertions, 16 deletions
diff --git a/doc/emacs/killing.texi b/doc/emacs/killing.texi
index f4a4a185a66..0629736b7fd 100644
--- a/doc/emacs/killing.texi
+++ b/doc/emacs/killing.texi
@@ -217,7 +217,7 @@ the key sequence @kbd{C-S-backspace}.
217 217
218@table @kbd 218@table @kbd
219@item C-w 219@item C-w
220Kill region (from point to the mark) (@code{kill-region}). 220Kill region (@code{kill-region}). @xref{Mark}.
221@item M-d 221@item M-d
222Kill word (@code{kill-word}). @xref{Words}. 222Kill word (@code{kill-word}). @xref{Words}.
223@item M-@key{DEL} 223@item M-@key{DEL}
@@ -299,14 +299,16 @@ This is the usual way to move text from one file to another.
299 299
300@kindex C-y 300@kindex C-y
301@findex yank 301@findex yank
302 The command @kbd{C-y} (@code{yank}) reinserts the text of the most recent 302 The command @kbd{C-y} (@code{yank}) reinserts the text of the most
303kill. It leaves the cursor at the end of the text. It sets the mark at 303recent kill, leaving the cursor at the end of the text. It also adds
304the beginning of the text. @xref{Mark}. 304the position of the beginning of the text to the mark ring, without
305 305activating the mark; this allows you to jump easily to that position
306 @kbd{C-u C-y} leaves the cursor in front of the text, and sets the 306with @kbd{C-@key{SPC}} (@pxref{Mark Ring}). With a plain prefix
307mark after it. This happens only if the argument is specified with just 307argument (@kbd{C-u C-y}), it instead leaves the cursor in front of the
308a @kbd{C-u}, precisely. Any other sort of argument, including @kbd{C-u} 308text, and adds the position of the end of the text to the mark ring.
309and digits, specifies an earlier kill to yank (@pxref{Earlier Kills}). 309Using other sort of prefix argument specifies an earlier kill; for
310example, @kbd{C-u 4 C-y} reinserts the fourth most recent kill.
311@xref{Earlier Kills}).
310 312
311@cindex yanking and text properties 313@cindex yanking and text properties
312@vindex yank-excluded-properties 314@vindex yank-excluded-properties
@@ -491,13 +493,13 @@ copy-to-buffer} is similar, except that any existing text in the other
491buffer is deleted, so the buffer is left containing just the text newly 493buffer is deleted, so the buffer is left containing just the text newly
492copied into it. 494copied into it.
493 495
494 To retrieve the accumulated text from another buffer, use the 496 The command @kbd{M-x insert-buffer} can be used to retrieve the
495command @kbd{M-x insert-buffer}; this too takes @var{buffername} as an 497accumulated text from another buffer. This prompts for the name of a
496argument. It inserts a copy of the whole text in buffer 498buffer, and inserts a copy of all the text in that buffer into the
497@var{buffername} into the current buffer at point, and sets the mark 499current buffer at point, leaving point at the beginning of the
498after the inserted text. Alternatively, you can select the other 500inserted text. It also adds the position of the end of the inserted
499buffer for editing, then copy text from it by killing. 501text to the mark ring, without activating the mark. @xref{Buffers},
500@xref{Buffers}, for background information on buffers. 502for background information on buffers.
501 503
502 Instead of accumulating text within Emacs, in a buffer, you can append 504 Instead of accumulating text within Emacs, in a buffer, you can append
503text directly into a file with @kbd{M-x append-to-file}, which takes 505text directly into a file with @kbd{M-x append-to-file}, which takes