diff options
| author | Richard M. Stallman | 2006-12-23 17:30:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-12-23 17:30:42 +0000 |
| commit | d1549d4e6d0ae99d6540b62e1579414d7b732750 (patch) | |
| tree | 6f2d3ca6d12b33bbf15cebd5c44a2b8686ec7170 | |
| parent | fa1f0a88f9209186c4a9ccb6edaacb8264d9535b (diff) | |
| download | emacs-d1549d4e6d0ae99d6540b62e1579414d7b732750.tar.gz emacs-d1549d4e6d0ae99d6540b62e1579414d7b732750.zip | |
(Regexp Search): Explain why forward and reverse regexp
search are not mirror images.
| -rw-r--r-- | man/ChangeLog | 10 | ||||
| -rw-r--r-- | man/search.texi | 7 |
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 @@ | |||
| 1 | 2006-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 | |||
| 6 | 2006-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 | |||
| 1 | 2006-12-19 Richard Stallman <rms@gnu.org> | 11 | 2006-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 | |||
| 488 | you have searched for @samp{foo} and you add @samp{\|bar}, the cursor | 488 | you have searched for @samp{foo} and you add @samp{\|bar}, the cursor |
| 489 | backs up in case the first @samp{bar} precedes the first @samp{foo}. | 489 | backs up in case the first @samp{bar} precedes the first @samp{foo}. |
| 490 | 490 | ||
| 491 | Forward and backward regexp search are not symmetrical, because | ||
| 492 | regexp matching in Emacs always operates forward, starting with the | ||
| 493 | beginning of the regexp. Thus, forward regexp search scans forward, | ||
| 494 | trying a forward match at each possible starting position. Backward | ||
| 495 | regexp search scans backward, trying a forward match at each possible | ||
| 496 | starting 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 |