aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-12-23 17:30:42 +0000
committerRichard M. Stallman2006-12-23 17:30:42 +0000
commitd1549d4e6d0ae99d6540b62e1579414d7b732750 (patch)
tree6f2d3ca6d12b33bbf15cebd5c44a2b8686ec7170
parentfa1f0a88f9209186c4a9ccb6edaacb8264d9535b (diff)
downloademacs-d1549d4e6d0ae99d6540b62e1579414d7b732750.tar.gz
emacs-d1549d4e6d0ae99d6540b62e1579414d7b732750.zip
(Regexp Search): Explain why forward and reverse regexp
search are not mirror images.
-rw-r--r--man/ChangeLog10
-rw-r--r--man/search.texi7
2 files changed, 17 insertions, 0 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index 32836432ddf..a3447fd1d95 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,13 @@
12006-12-23 Richard Stallman <rms@gnu.org>
2
3 * search.texi (Regexp Search): Explain why forward and reverse regexp
4 search are not mirror images.
5
62006-12-22 Kevin Ryde <user42@zip.com.au>
7
8 * cl.texi (Sorting Sequences): Typo in sort*, example showed plain
9 "sort" instead of "sort*".
10
12006-12-19 Richard Stallman <rms@gnu.org> 112006-12-19 Richard Stallman <rms@gnu.org>
2 12
3 * calc.texi (History and Acknowledgements): Recognize that Emacs 13 * calc.texi (History and Acknowledgements): Recognize that Emacs
diff --git a/man/search.texi b/man/search.texi
index 67b61aeac07..532d58fb9d8 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -488,6 +488,13 @@ search can make the cursor move back and start again. For example, if
488you have searched for @samp{foo} and you add @samp{\|bar}, the cursor 488you have searched for @samp{foo} and you add @samp{\|bar}, the cursor
489backs up in case the first @samp{bar} precedes the first @samp{foo}. 489backs up in case the first @samp{bar} precedes the first @samp{foo}.
490 490
491 Forward and backward regexp search are not symmetrical, because
492regexp matching in Emacs always operates forward, starting with the
493beginning of the regexp. Thus, forward regexp search scans forward,
494trying a forward match at each possible starting position. Backward
495regexp search scans backward, trying a forward match at each possible
496starting position. These search methods are not mirror images.
497
491@findex re-search-forward 498@findex re-search-forward
492@findex re-search-backward 499@findex re-search-backward
493 Nonincremental search for a regexp is done by the functions 500 Nonincremental search for a regexp is done by the functions