Commit 80d7cdca authored by Chong Yidong's avatar Chong Yidong
Browse files

* searching.texi (Regexp Backslash): Also refer to shy groups as

non-capturing or unnumbered groups.
(Regexp Functions): Add cross-reference to Regexp Backslash.
parent b0f439fc
2009-04-15 Chong Yidong <cyd@stupidchicken.com> 2009-04-15 Chong Yidong <cyd@stupidchicken.com>
* searching.texi (Regexp Backslash): Also refer to shy groups as
non-capturing or unnumbered groups.
(Regexp Functions): Add cross-reference to Regexp Backslash.
* display.texi (Truncation): Overlays can use line-prefix and * display.texi (Truncation): Overlays can use line-prefix and
wrap-prefix too. wrap-prefix too.
(Overlay Properties): Document wrap-prefix and line-prefix. (Overlay Properties): Document wrap-prefix and line-prefix.
......
...@@ -654,14 +654,19 @@ occasionally there is a conflict, and that led to the introduction of ...@@ -654,14 +654,19 @@ occasionally there is a conflict, and that led to the introduction of
shy groups. shy groups.
@item \(?: @dots{} \) @item \(?: @dots{} \)
@cindex shy groups
@cindex non-capturing group
@cindex unnumbered group
is the @dfn{shy group} construct. A shy group serves the first two is the @dfn{shy group} construct. A shy group serves the first two
purposes of an ordinary group (controlling the nesting of other purposes of an ordinary group (controlling the nesting of other
operators), but it does not get a number, so you cannot refer back to operators), but it does not get a number, so you cannot refer back to
its value with @samp{\@var{digit}}. its value with @samp{\@var{digit}}. Shy groups are particularly
useful for mechanically-constructed regular expressions, because they
can be added automatically without altering the numbering of ordinary,
non-shy groups.
Shy groups are particularly useful for mechanically-constructed regular Shy groups are also called @dfn{non-capturing} or @dfn{unnumbered
expressions because they can be added automatically without altering the groups}.
numbering of any ordinary, non-shy groups.
@item \(?@var{num}: @dots{} \) @item \(?@var{num}: @dots{} \)
is the @dfn{explicitly numbered group} construct. Normal groups get is the @dfn{explicitly numbered group} construct. Normal groups get
...@@ -939,8 +944,8 @@ regular expression which is equivalent to the actual value ...@@ -939,8 +944,8 @@ regular expression which is equivalent to the actual value
@defun regexp-opt-depth regexp @defun regexp-opt-depth regexp
This function returns the total number of grouping constructs This function returns the total number of grouping constructs
(parenthesized expressions) in @var{regexp}. (This does not include (parenthesized expressions) in @var{regexp}. This does not include
shy groups.) shy groups (@pxref{Regexp Backslash}).
@end defun @end defun
@node Regexp Search @node Regexp Search
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment