# HG changeset patch # User Richard M. Stallman # Date 1144870324 0 # Node ID 9ca2896dbd3669e83869ed0249578e960403db34 # Parent 101355b37caf941dd1d67a3da2439f7d28954a0b Clean up previous change. diff -r 101355b37caf -r 9ca2896dbd36 man/search.texi --- a/man/search.texi Wed Apr 12 18:17:17 2006 +0000 +++ b/man/search.texi Wed Apr 12 19:32:04 2006 +0000 @@ -752,7 +752,8 @@ @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 @@ @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}