From c32d0e4c6126edb1b1510b4c6926ef1a023435ca Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 29 May 2025 19:02:13 +0300 Subject: [PATCH] ; * doc/lispref/searching.texi (Char Classes): Add speedup advice. (cherry picked from commit 8881dca81c95bac1977aa2c924be173382444c4a) --- doc/lispref/searching.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 9e498b56bb4..9481782d552 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -616,7 +616,10 @@ This matches horizontal whitespace, as defined by Annex C of the Unicode Technical Standard #18. In particular, it matches spaces, tabs, and other characters whose Unicode @samp{general-category} property (@pxref{Character Properties}) indicates they are spacing -separators. +separators. (If you only need to look for ASCII whitespace characters, +we suggest using an explicit set of character alternatives, such as +@w{@samp{[ \t]}}, instead, as it will be faster than +@code{[[:blank:]]}.) @item [:cntrl:] This matches any character whose code is in the range 0--31. @item [:digit:] -- 2.39.5