From: Noam Postavsky Date: Mon, 11 Dec 2017 23:52:52 +0000 (-0500) Subject: * doc/lispref/searching.texi: Document regexp repetition limit. X-Git-Tag: emacs-26.1-rc1~314 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=463f96b4813fb77d88a7b0fa93f94aa08d71689f;p=emacs.git * doc/lispref/searching.texi: Document regexp repetition limit. --- 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