From 463f96b4813fb77d88a7b0fa93f94aa08d71689f Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Mon, 11 Dec 2017 18:52:52 -0500 Subject: [PATCH] * doc/lispref/searching.texi: Document regexp repetition limit. --- doc/lispref/searching.texi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- 2.39.2