summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-11-17 16:39:24 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-11-17 16:39:24 +0000
commit1e680ac998689e97b00934719c3ca0e80e213ae3 (patch)
tree65ff1b102cd191e1a82eaeb7de3734cdcc3fda54
parent345fc7704997270856bc87f8ef9644b8ec13394a (diff)
downloademacs-1e680ac998689e97b00934719c3ca0e80e213ae3.tar.gz
emacs-1e680ac998689e97b00934719c3ca0e80e213ae3.tar.bz2
emacs-1e680ac998689e97b00934719c3ca0e80e213ae3.zip
(Using Region): Document Delete Selection Mode more thoroughly.
-rw-r--r--doc/emacs/mark.texi14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi
index 84cf5b39638..99b978ff38e 100644
--- a/doc/emacs/mark.texi
+++ b/doc/emacs/mark.texi
@@ -222,9 +222,6 @@ Save it in a buffer or a file (@pxref{Accumulating Text}).
Most commands that operate on the text in the region have the word
@code{region} in their names.
- If Delete Selection mode is enabled, some commands delete the region
-when used while the mark is active. @xref{Mouse Commands}.
-
Some commands have a default behavior when the region is inactive,
but operate on the text in the region if the region is active. For
example, @kbd{M-$} (@code{ispell-word}) normally checks the spelling
@@ -235,6 +232,17 @@ are at the same position). If you want them to operate on the empty
region, change the variable @code{use-empty-active-region} to
@code{t}.
+@cindex Delete Selection mode
+@cindex mode, Delete Selection
+@findex delete-selection-mode
+ If you enable Delete Selection mode, a minor mode, then inserting
+text while the region is active causes the selected text to be deleted
+first. This also deactivates the mark. Many graphical applications
+follow this convention, but Emacs does not. To toggle Delete
+Selection mode on or off, type @kbd{M-x delete-selection-mode}.
+Another effect of this mode is that some keys, such as @key{DEL} and
+@kbd{C-d}, always kill the region if one exists.
+
@node Mark Ring
@section The Mark Ring