changeset 99669:da7dc901e0e6

(Using Region): Document Delete Selection Mode more thoroughly.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 17 Nov 2008 16:39:24 +0000
parents b8704eb1a8e9
children bfe3493da0c5
files doc/emacs/mark.texi
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/doc/emacs/mark.texi	Mon Nov 17 16:39:17 2008 +0000
+++ b/doc/emacs/mark.texi	Mon Nov 17 16:39:24 2008 +0000
@@ -222,9 +222,6 @@
   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 @@
 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