[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/doc/emacs/search.texi,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/doc/emacs/search.texi,v |
Date: |
Fri, 28 Mar 2008 19:04:34 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/03/28 19:04:33
Index: search.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/emacs/search.texi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- search.texi 22 Jan 2008 23:53:34 -0000 1.4
+++ search.texi 28 Mar 2008 19:04:33 -0000 1.5
@@ -105,11 +105,11 @@
@kbd{C-y}, @kbd{M-y}, @kbd{M-r}, @kbd{M-c}, @kbd{M-e}, and some other
meta-characters).
- When you exit the incremental search, it sets the mark where point
address@hidden before the search. That is convenient for moving back
-there. In Transient Mark mode, incremental search sets the mark
-without activating it, and does so only if the mark is not already
-active.
+ When you exit the incremental search, it adds the original value of
+point to the mark ring, without activating the mark. You can thus use
address@hidden@key{SPC}} to return to where you were before beginning the
+search. @xref{Mark Ring}. It only does this if the mark was not
+already active.
@node Repeat Isearch
@subsection Repeating Incremental Search
@@ -961,12 +961,11 @@
of the pattern and asks you whether to replace it.
The replace commands normally operate on the text from point to the
-end of the buffer; however, in Transient Mark mode (@pxref{Transient
-Mark}), when the mark is active, they operate on the region. The
-basic replace commands replace one string (or regexp) with one
-replacement string. It is possible to perform several replacements in
-parallel using the command @code{expand-region-abbrevs}
-(@pxref{Expanding Abbrevs}).
+end of the buffer. When the mark is active, they operate on the
+region instead (@pxref{Mark}). The basic replace commands replace one
+string (or regexp) with one replacement string. It is possible to
+perform several replacements in parallel using the command
address@hidden (@pxref{Expanding Abbrevs}).
@menu
* Unconditional Replace:: Replacing all matches for a string.
@@ -991,13 +990,14 @@
beginning first. All occurrences up to the end of the buffer are
replaced; to limit replacement to part of the buffer, narrow to that
part of the buffer before doing the replacement (@pxref{Narrowing}).
-In Transient Mark mode, when the region is active, replacement is
-limited to the region (@pxref{Transient Mark}).
+When the region is active, replacement is limited to the region
+(@pxref{Mark}).
When @code{replace-string} exits, it leaves point at the last
-occurrence replaced. It sets the mark to the prior position of point
-(where the @code{replace-string} command was issued); use @kbd{C-u
address@hidden to move back there.
+occurrence replaced. It adds the prior position of point (where the
address@hidden command was issued) to the mark ring, without
+activating the mark; use @kbd{C-u address@hidden to move back there.
address@hidden Ring}.
A numeric argument restricts replacement to matches that are surrounded
by word boundaries. The argument's value doesn't matter.
@@ -1281,8 +1281,7 @@
expression. They all ignore case in matching, if the pattern contains
no upper-case letters and @code{case-fold-search} is address@hidden
Aside from @code{occur} and its variants, all operate on the text from
-point to the end of the buffer, or on the active region in Transient
-Mark mode.
+point to the end of the buffer, or on the region if it is active.
@findex list-matching-lines
@findex occur
@@ -1332,16 +1331,16 @@
@item M-x how-many @key{RET} @var{regexp} @key{RET}
Print the number of matches for @var{regexp} that exist in the buffer
-after point. In Transient Mark mode, if the region is active, the
-command operates on the region instead.
+after point. If the region is active, this operates on the region
+instead.
@item M-x flush-lines @key{RET} @var{regexp} @key{RET}
This command deletes each line that contains a match for @var{regexp},
-operating on the text after point; it deletes the current line
-if it contains a match starting after point. In Transient Mark mode,
-if the region is active, the command operates on the region instead;
-it deletes a line partially contained in the region if it contains a
-match entirely contained in the region.
+operating on the text after point; it deletes the current line if it
+contains a match starting after point. If the region is active, it
+operates on the region instead; if a line partially contained in the
+region contains a match entirely contained in the region, it is
+deleted.
If a match is split across lines, @code{flush-lines} deletes all those
lines. It deletes the lines before starting to look for the next
@@ -1349,12 +1348,12 @@
another match ended.
@item M-x keep-lines @key{RET} @var{regexp} @key{RET}
-This command deletes each line that @emph{does not} contain a match for
address@hidden, operating on the text after point; if point is not at the
-beginning of a line, it always keeps the current line. In Transient
-Mark mode, if the region is active, the command operates on the region
-instead; it never deletes lines that are only partially contained in
-the region (a newline that ends a line counts as part of that line).
+This command deletes each line that @emph{does not} contain a match
+for @var{regexp}, operating on the text after point; if point is not
+at the beginning of a line, it always keeps the current line. If the
+region is active, the command operates on the region instead; it never
+deletes lines that are only partially contained in the region (a
+newline that ends a line counts as part of that line).
If a match is split across lines, this command keeps all those lines.
@end table
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/doc/emacs/search.texi,v,
Chong Yidong <=