diff options
| author | Richard M. Stallman | 2001-02-17 17:43:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-02-17 17:43:03 +0000 |
| commit | eaf89fe69327d054c12143f0448c1aa146bc9f6f (patch) | |
| tree | 132f8d1fabb21255133426e8b8ab36b66ba40e7d | |
| parent | b08fa67e1cc306e72815d4d15e82df8309954a12 (diff) | |
| download | emacs-eaf89fe69327d054c12143f0448c1aa146bc9f6f.tar.gz emacs-eaf89fe69327d054c12143f0448c1aa146bc9f6f.zip | |
Clean up intro to Transient Mark mode.
Explain that it changes the behavior of some commands.
| -rw-r--r-- | man/mark.texi | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/man/mark.texi b/man/mark.texi index ba51aae3170..0587283f6cc 100644 --- a/man/mark.texi +++ b/man/mark.texi | |||
| @@ -119,18 +119,21 @@ character, but its binding is still @code{set-mark-command}. | |||
| 119 | @cindex highlighting region | 119 | @cindex highlighting region |
| 120 | @cindex region highlighting | 120 | @cindex region highlighting |
| 121 | 121 | ||
| 122 | Emacs can highlight the current region on a terminal which supports | 122 | On a terminal that supports colors, Emacs can highlight the current |
| 123 | colors. But normally it does not. Why not? | 123 | region. But normally it does not. Why not? |
| 124 | 124 | ||
| 125 | Highlighting the region doesn't work well ordinarily in Emacs, because | 125 | Highlighting the region whenever it exists would not be desirable in |
| 126 | once you have set a mark, there is @emph{always} a region (in that | 126 | Emacs, because once you have set a mark, there is @emph{always} a |
| 127 | buffer). And highlighting the region all the time would be a nuisance. | 127 | region (in that buffer). And highlighting the region all the time |
| 128 | would be a nuisance. So normally Emacs highlights the region only | ||
| 129 | immediately after you have selected it with the mouse. | ||
| 128 | 130 | ||
| 129 | You can turn on region highlighting by enabling Transient Mark mode. | 131 | You can turn on region highlighting by enabling Transient Mark mode. |
| 130 | This is a more rigid mode of operation in which the region ``lasts'' | 132 | This is a more rigid mode of operation in which the region ``lasts'' |
| 131 | only temporarily, so you must set up a region for each command that uses | 133 | only temporarily, so you must set up a region for each command that uses |
| 132 | one. In Transient Mark mode, most of the time there is no region; | 134 | one. In Transient Mark mode, most of the time there is no region; |
| 133 | therefore, highlighting the region when it exists is convenient. | 135 | therefore, highlighting the region when it exists is useful and |
| 136 | not annoying. | ||
| 134 | 137 | ||
| 135 | @findex transient-mark-mode | 138 | @findex transient-mark-mode |
| 136 | To enable Transient Mark mode, type @kbd{M-x transient-mark-mode}. | 139 | To enable Transient Mark mode, type @kbd{M-x transient-mark-mode}. |
| @@ -172,6 +175,14 @@ You can activate the new region by executing @kbd{C-x C-x} | |||
| 172 | 175 | ||
| 173 | @item | 176 | @item |
| 174 | Quitting with @kbd{C-g} deactivates the mark. | 177 | Quitting with @kbd{C-g} deactivates the mark. |
| 178 | |||
| 179 | @item | ||
| 180 | Some commands operate on the region whenever it is active. For | ||
| 181 | instance, @kbd{C-x u} in Transient Mark mode operates on the region | ||
| 182 | when there is a region. Outside Transient Mark mode, you must type | ||
| 183 | @kbd{C-u C-x u} if you want it to operate on the region. | ||
| 184 | @xref{Undo}. Other commands that act this way are identified | ||
| 185 | in their own documentation. | ||
| 175 | @end itemize | 186 | @end itemize |
| 176 | 187 | ||
| 177 | Highlighting of the region uses the @code{region} face; you can | 188 | Highlighting of the region uses the @code{region} face; you can |