diff options
| -rw-r--r-- | man/ChangeLog | 4 | ||||
| -rw-r--r-- | man/search.texi | 12 |
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 @@ | |||
| 1 | 2006-04-12 Richard Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * search.texi: Clean up previous change. | ||
| 4 | |||
| 1 | 2006-04-12 Eli Zaretskii <eliz@gnu.org> | 5 | 2006-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 |
| 754 | matches the same text that matched the @var{d}th occurrence of a | 754 | matches 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 |
| 756 | reference}. | ||
| 756 | 757 | ||
| 757 | After the end of a @samp{\( @dots{} \)} construct, the matcher remembers | 758 | After the end of a @samp{\( @dots{} \)} construct, the matcher remembers |
| 758 | the beginning and end of the text matched by that construct. Then, | 759 | the 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 |
| 1010 | replaced. @samp{\@var{d}} in @var{newstring}, where @var{d} is a | 1011 | replaced. @samp{\@var{d}} in @var{newstring}, where @var{d} is a |
| 1011 | digit, stands for whatever matched the @var{d}th parenthesized | 1012 | digit, stands for whatever matched the @var{d}th parenthesized |
| 1012 | grouping in @var{regexp} (a.k.a.@: ``back reference''). @samp{\#} | 1013 | grouping in @var{regexp}. (This is called a ``back reference''.) |
| 1013 | refers to the count of replacements already made in this command, as a | 1014 | @samp{\#} refers to the count of replacements already made in this |
| 1014 | decimal number. In the first replacement, @samp{\#} stands for | 1015 | command, as a decimal number. In the first replacement, @samp{\#} |
| 1015 | @samp{0}; in the second, for @samp{1}; and so on. For example, | 1016 | stands for @samp{0}; in the second, for @samp{1}; and so on. For |
| 1017 | example, | ||
| 1016 | 1018 | ||
| 1017 | @example | 1019 | @example |
| 1018 | M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET} | 1020 | M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET} |