comparison man/mark.texi @ 36164:d97455a119bb

Clean up intro to Transient Mark mode. Explain that it changes the behavior of some commands.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Feb 2001 17:43:03 +0000
parents 4aeb7434af3c
children 7ae44c5a0404
comparison
equal deleted inserted replaced
36163:159cc113a7b0 36164:d97455a119bb
117 @cindex mode, Transient Mark 117 @cindex mode, Transient Mark
118 @cindex Transient Mark mode 118 @cindex Transient Mark mode
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}.
137 This command toggles the mode, so you can repeat the command to turn off 140 This command toggles the mode, so you can repeat the command to turn off
138 the mode. 141 the mode.
170 @item 173 @item
171 @kbd{C-s} when the mark is active does not alter the mark. 174 @kbd{C-s} when the mark is active does not alter the mark.
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
178 customize how the region is highlighted by changing this face. 189 customize how the region is highlighted by changing this face.
179 @xref{Face Customization}. 190 @xref{Face Customization}.