summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2017-12-11 18:52:52 -0500
committerNoam Postavsky <npostavs@gmail.com>2018-01-26 19:53:09 -0500
commit463f96b4813fb77d88a7b0fa93f94aa08d71689f (patch)
treef05a09007bcdeac83aa6a955d20644c138531420
parent08a6195571194f961fb898ebbf307c0aa13785a6 (diff)
downloademacs-463f96b4813fb77d88a7b0fa93f94aa08d71689f.tar.gz
* doc/lispref/searching.texi: Document regexp repetition limit.
-rw-r--r--doc/lispref/searching.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 552001e8904..e759967aa8a 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -639,7 +639,15 @@ and nothing else. @samp{c[ad]\@{3\@}r} matches string such as
is a more general postfix operator that specifies repetition with a
minimum of @var{m} repeats and a maximum of @var{n} repeats. If @var{m}
is omitted, the minimum is 0; if @var{n} is omitted, there is no
-maximum.
+maximum. For both forms, @var{m} and @var{n}, if specified, may be no
+larger than
+@ifnottex
+2**15 @minus{} 1
+@end ifnottex
+@tex
+@math{2^{15}-1}
+@end tex
+.
For example, @samp{c[ad]\@{1,2\@}r} matches the strings @samp{car},
@samp{cdr}, @samp{caar}, @samp{cadr}, @samp{cdar}, and @samp{cddr}, and