Mercurial > emacs
changeset 69976:9ca2896dbd36
Clean up previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 12 Apr 2006 19:32:04 +0000 |
parents | 101355b37caf |
children | b2ed1f1fc9e0 |
files | man/search.texi |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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}