aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-04-12 19:32:07 +0000
committerRichard M. Stallman2006-04-12 19:32:07 +0000
commitd8523190ca4f064fa819cfcd053d204b2b8d0b60 (patch)
treead1036b3bab739a31dec1c5cf95bfceb526ebdb2
parent7e37cb69570c07dc0b293aa59b0dea7cf86bd4f3 (diff)
downloademacs-d8523190ca4f064fa819cfcd053d204b2b8d0b60.tar.gz
emacs-d8523190ca4f064fa819cfcd053d204b2b8d0b60.zip
Clean up previous change.
-rw-r--r--man/ChangeLog4
-rw-r--r--man/search.texi12
2 files changed, 11 insertions, 5 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index c99c487ee3c..5344097dda7 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12006-04-12 Richard Stallman <rms@gnu.org>
2
3 * search.texi: Clean up previous change.
4
12006-04-12 Eli Zaretskii <eliz@gnu.org> 52006-04-12 Eli Zaretskii <eliz@gnu.org>
2 6
3 * search.texi (Regexp Backslash, Regexp Replace): Add index 7 * search.texi (Regexp Backslash, Regexp Replace): Add index
diff --git a/man/search.texi b/man/search.texi
index ab109445091..4ea3053dea7 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -752,7 +752,8 @@ the numbering of the groups that are meant to be referred to.
752@item \@var{d} 752@item \@var{d}
753@cindex back reference, in regexp 753@cindex back reference, in regexp
754matches the same text that matched the @var{d}th occurrence of a 754matches the same text that matched the @var{d}th occurrence of a
755@samp{\( @dots{} \)} construct (a.k.a.@: @dfn{back reference}). 755@samp{\( @dots{} \)} construct. This is called a @dfn{back
756reference}.
756 757
757After the end of a @samp{\( @dots{} \)} construct, the matcher remembers 758After the end of a @samp{\( @dots{} \)} construct, the matcher remembers
758the beginning and end of the text matched by that construct. Then, 759the beginning and end of the text matched by that construct. Then,
@@ -1009,10 +1010,11 @@ it can refer to all or part of what is matched by the @var{regexp}.
1009@samp{\&} in @var{newstring} stands for the entire match being 1010@samp{\&} in @var{newstring} stands for the entire match being
1010replaced. @samp{\@var{d}} in @var{newstring}, where @var{d} is a 1011replaced. @samp{\@var{d}} in @var{newstring}, where @var{d} is a
1011digit, stands for whatever matched the @var{d}th parenthesized 1012digit, stands for whatever matched the @var{d}th parenthesized
1012grouping in @var{regexp} (a.k.a.@: ``back reference''). @samp{\#} 1013grouping in @var{regexp}. (This is called a ``back reference''.)
1013refers to the count of replacements already made in this command, as a 1014@samp{\#} refers to the count of replacements already made in this
1014decimal number. In the first replacement, @samp{\#} stands for 1015command, as a decimal number. In the first replacement, @samp{\#}
1015@samp{0}; in the second, for @samp{1}; and so on. For example, 1016stands for @samp{0}; in the second, for @samp{1}; and so on. For
1017example,
1016 1018
1017@example 1019@example
1018M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET} 1020M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET}