diff options
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 17 |
2 files changed, 15 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 073bdc41842..8cb1e0206b3 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2009-04-15 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-04-15 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * searching.texi (Regexp Backslash): Also refer to shy groups as | ||
| 4 | non-capturing or unnumbered groups. | ||
| 5 | (Regexp Functions): Add cross-reference to Regexp Backslash. | ||
| 6 | |||
| 3 | * display.texi (Truncation): Overlays can use line-prefix and | 7 | * display.texi (Truncation): Overlays can use line-prefix and |
| 4 | wrap-prefix too. | 8 | wrap-prefix too. |
| 5 | (Overlay Properties): Document wrap-prefix and line-prefix. | 9 | (Overlay Properties): Document wrap-prefix and line-prefix. |
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index bc223f8ac3f..9c9b60fb201 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -654,14 +654,19 @@ occasionally there is a conflict, and that led to the introduction of | |||
| 654 | shy groups. | 654 | shy groups. |
| 655 | 655 | ||
| 656 | @item \(?: @dots{} \) | 656 | @item \(?: @dots{} \) |
| 657 | @cindex shy groups | ||
| 658 | @cindex non-capturing group | ||
| 659 | @cindex unnumbered group | ||
| 657 | is the @dfn{shy group} construct. A shy group serves the first two | 660 | is the @dfn{shy group} construct. A shy group serves the first two |
| 658 | purposes of an ordinary group (controlling the nesting of other | 661 | purposes of an ordinary group (controlling the nesting of other |
| 659 | operators), but it does not get a number, so you cannot refer back to | 662 | operators), but it does not get a number, so you cannot refer back to |
| 660 | its value with @samp{\@var{digit}}. | 663 | its value with @samp{\@var{digit}}. Shy groups are particularly |
| 664 | useful for mechanically-constructed regular expressions, because they | ||
| 665 | can be added automatically without altering the numbering of ordinary, | ||
| 666 | non-shy groups. | ||
| 661 | 667 | ||
| 662 | Shy groups are particularly useful for mechanically-constructed regular | 668 | Shy groups are also called @dfn{non-capturing} or @dfn{unnumbered |
| 663 | expressions because they can be added automatically without altering the | 669 | groups}. |
| 664 | numbering of any ordinary, non-shy groups. | ||
| 665 | 670 | ||
| 666 | @item \(?@var{num}: @dots{} \) | 671 | @item \(?@var{num}: @dots{} \) |
| 667 | is the @dfn{explicitly numbered group} construct. Normal groups get | 672 | is the @dfn{explicitly numbered group} construct. Normal groups get |
| @@ -939,8 +944,8 @@ regular expression which is equivalent to the actual value | |||
| 939 | 944 | ||
| 940 | @defun regexp-opt-depth regexp | 945 | @defun regexp-opt-depth regexp |
| 941 | This function returns the total number of grouping constructs | 946 | This function returns the total number of grouping constructs |
| 942 | (parenthesized expressions) in @var{regexp}. (This does not include | 947 | (parenthesized expressions) in @var{regexp}. This does not include |
| 943 | shy groups.) | 948 | shy groups (@pxref{Regexp Backslash}). |
| 944 | @end defun | 949 | @end defun |
| 945 | 950 | ||
| 946 | @node Regexp Search | 951 | @node Regexp Search |