diff options
author | Richard M. Stallman <rms@gnu.org> | 2006-04-12 19:32:07 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2006-04-12 19:32:07 +0000 |
commit | d8523190ca4f064fa819cfcd053d204b2b8d0b60 (patch) | |
tree | ad1036b3bab739a31dec1c5cf95bfceb526ebdb2 /man/search.texi | |
parent | 7e37cb69570c07dc0b293aa59b0dea7cf86bd4f3 (diff) | |
download | emacs-d8523190ca4f064fa819cfcd053d204b2b8d0b60.tar.gz |
Clean up previous change.
Diffstat (limited to 'man/search.texi')
-rw-r--r-- | man/search.texi | 12 |
1 files changed, 7 insertions, 5 deletions
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. @item \@var{d} @cindex back reference, in regexp matches the same text that matched the @var{d}th occurrence of a -@samp{\( @dots{} \)} construct (a.k.a.@: @dfn{back reference}). +@samp{\( @dots{} \)} construct. This is called a @dfn{back +reference}. After the end of a @samp{\( @dots{} \)} construct, the matcher remembers 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}. @samp{\&} in @var{newstring} stands for the entire match being replaced. @samp{\@var{d}} in @var{newstring}, where @var{d} is a digit, stands for whatever matched the @var{d}th parenthesized -grouping in @var{regexp} (a.k.a.@: ``back reference''). @samp{\#} -refers to the count of replacements already made in this command, as a -decimal number. In the first replacement, @samp{\#} stands for -@samp{0}; in the second, for @samp{1}; and so on. For example, +grouping in @var{regexp}. (This is called a ``back reference''.) +@samp{\#} refers to the count of replacements already made in this +command, as a decimal number. In the first replacement, @samp{\#} +stands for @samp{0}; in the second, for @samp{1}; and so on. For +example, @example M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET} |