diff options
| author | Chong Yidong | 2008-11-17 16:39:24 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-17 16:39:24 +0000 |
| commit | 1e680ac998689e97b00934719c3ca0e80e213ae3 (patch) | |
| tree | 65ff1b102cd191e1a82eaeb7de3734cdcc3fda54 | |
| parent | 345fc7704997270856bc87f8ef9644b8ec13394a (diff) | |
| download | emacs-1e680ac998689e97b00934719c3ca0e80e213ae3.tar.gz emacs-1e680ac998689e97b00934719c3ca0e80e213ae3.zip | |
(Using Region): Document Delete Selection Mode more thoroughly.
| -rw-r--r-- | doc/emacs/mark.texi | 14 |
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}). | |||
| 222 | Most commands that operate on the text in the region have the word | 222 | Most commands that operate on the text in the region have the word |
| 223 | @code{region} in their names. | 223 | @code{region} in their names. |
| 224 | 224 | ||
| 225 | If Delete Selection mode is enabled, some commands delete the region | ||
| 226 | when used while the mark is active. @xref{Mouse Commands}. | ||
| 227 | |||
| 228 | Some commands have a default behavior when the region is inactive, | 225 | Some commands have a default behavior when the region is inactive, |
| 229 | but operate on the text in the region if the region is active. For | 226 | but operate on the text in the region if the region is active. For |
| 230 | example, @kbd{M-$} (@code{ispell-word}) normally checks the spelling | 227 | 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 | |||
| 235 | region, change the variable @code{use-empty-active-region} to | 232 | region, change the variable @code{use-empty-active-region} to |
| 236 | @code{t}. | 233 | @code{t}. |
| 237 | 234 | ||
| 235 | @cindex Delete Selection mode | ||
| 236 | @cindex mode, Delete Selection | ||
| 237 | @findex delete-selection-mode | ||
| 238 | If you enable Delete Selection mode, a minor mode, then inserting | ||
| 239 | text while the region is active causes the selected text to be deleted | ||
| 240 | first. This also deactivates the mark. Many graphical applications | ||
| 241 | follow this convention, but Emacs does not. To toggle Delete | ||
| 242 | Selection mode on or off, type @kbd{M-x delete-selection-mode}. | ||
| 243 | Another effect of this mode is that some keys, such as @key{DEL} and | ||
| 244 | @kbd{C-d}, always kill the region if one exists. | ||
| 245 | |||
| 238 | @node Mark Ring | 246 | @node Mark Ring |
| 239 | @section The Mark Ring | 247 | @section The Mark Ring |
| 240 | 248 | ||