Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
eaf89fe6
Commit
eaf89fe6
authored
Feb 17, 2001
by
Richard M. Stallman
Browse files
Clean up intro to Transient Mark mode.
Explain that it changes the behavior of some commands.
parent
b08fa67e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
man/mark.texi
man/mark.texi
+17
-6
No files found.
man/mark.texi
View file @
eaf89fe6
...
@@ -119,18 +119,21 @@ character, but its binding is still @code{set-mark-command}.
...
@@ -119,18 +119,21 @@ character, but its binding is still @code{set-mark-command}.
@cindex highlighting region
@cindex highlighting region
@cindex region highlighting
@cindex region highlighting
Emacs can highlight the current region on a terminal which supports
On a terminal that supports colors, Emacs can highlight the current
colors
. But normally it does not. Why not?
region
. But normally it does not. Why not?
Highlighting the region doesn't work well ordinarily in Emacs, because
Highlighting the region whenever it exists would not be desirable in
once you have set a mark, there is @emph{always} a region (in that
Emacs, because once you have set a mark, there is @emph{always} a
buffer). And highlighting the region all the time would be a nuisance.
region (in that buffer). And highlighting the region all the time
would be a nuisance. So normally Emacs highlights the region only
immediately after you have selected it with the mouse.
You can turn on region highlighting by enabling Transient Mark mode.
You can turn on region highlighting by enabling Transient Mark mode.
This is a more rigid mode of operation in which the region ``lasts''
This is a more rigid mode of operation in which the region ``lasts''
only temporarily, so you must set up a region for each command that uses
only temporarily, so you must set up a region for each command that uses
one. In Transient Mark mode, most of the time there is no region;
one. In Transient Mark mode, most of the time there is no region;
therefore, highlighting the region when it exists is convenient.
therefore, highlighting the region when it exists is useful and
not annoying.
@findex transient-mark-mode
@findex transient-mark-mode
To enable Transient Mark mode, type @kbd{M-x transient-mark-mode}.
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,6 +175,14 @@ You can activate the new region by executing @kbd{C-x C-x}
@item
@item
Quitting with @kbd{C-g} deactivates the mark.
Quitting with @kbd{C-g} deactivates the mark.
@item
Some commands operate on the region whenever it is active. For
instance, @kbd{C-x u} in Transient Mark mode operates on the region
when there is a region. Outside Transient Mark mode, you must type
@kbd{C-u C-x u} if you want it to operate on the region.
@xref{Undo}. Other commands that act this way are identified
in their own documentation.
@end itemize
@end itemize
Highlighting of the region uses the @code{region} face; you can
Highlighting of the region uses the @code{region} face; you can
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment