From: Chong Yidong Date: Mon, 17 Nov 2008 16:39:24 +0000 (+0000) Subject: (Using Region): Document Delete Selection Mode more thoroughly. X-Git-Tag: emacs-pretest-23.0.90~1741 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e680ac998689e97b00934719c3ca0e80e213ae3;p=emacs.git (Using Region): Document Delete Selection Mode more thoroughly. --- 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