aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorStefan Monnier2007-06-12 18:40:18 +0000
committerStefan Monnier2007-06-12 18:40:18 +0000
commitc69b0314526d0b618be1af27b8b6330065401e61 (patch)
treee9adef9dfd0d31c2a84024d760882668049dd8b6 /lispref
parent495fa7db39d8b28633d410f994d9c583f407c8d3 (diff)
downloademacs-c69b0314526d0b618be1af27b8b6330065401e61.tar.gz
emacs-c69b0314526d0b618be1af27b8b6330065401e61.zip
(regex_compile): Remove the `regnum' counter.
Use bufp->re_nsub instead. Add support for \(?N:RE\).
Diffstat (limited to 'lispref')
-rw-r--r--lispref/searching.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/lispref/searching.texi b/lispref/searching.texi
index 10e8c672962..f923a58f112 100644
--- a/lispref/searching.texi
+++ b/lispref/searching.texi
@@ -650,6 +650,15 @@ Shy groups are particularly useful for mechanically-constructed regular
650expressions because they can be added automatically without altering the 650expressions because they can be added automatically without altering the
651numbering of any ordinary, non-shy groups. 651numbering of any ordinary, non-shy groups.
652 652
653@item \(?@var{num}: @dots{} \)
654is the @dfn{explicitly numbered group} construct. Normal groups get
655their number implicitly, based on their position, which can be
656inconvenient. This construct allows you to force a particular group
657number. There is no particular restriction on the numbering,
658e.g.@: you can have several groups with the same number.
659Implicitly numbered groups always get the smallest integer larger than
660the one of any previous group.
661
653@item \@var{digit} 662@item \@var{digit}
654matches the same text that matched the @var{digit}th occurrence of a 663matches the same text that matched the @var{digit}th occurrence of a
655grouping (@samp{\( @dots{} \)}) construct. 664grouping (@samp{\( @dots{} \)}) construct.