diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 761161be1c0..f6d9cb3be18 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi @@ -1331,8 +1331,8 @@ matches @w{@samp{foo bar}}, @w{@samp{foo@ @ bar}}, precisely, Emacs matches each sequence of space characters in the search string to a regular expression specified by the variable @code{search-whitespace-regexp}. For example, to make spaces match -sequences of newlines as well as spaces, set it to -@samp{"[[:space:]\n]+"}. The default value of this variable considers +sequences of newlines as well as spaces, set it to the regular expression +@samp{[[:space:]\n]+}. The default value of this variable considers any sequence of spaces and tab characters as whitespace. If you want whitespace characters to match exactly, you can turn lax diff --git a/etc/NEWS b/etc/NEWS index 2274588913e..c3bfc9c9474 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1168,7 +1168,7 @@ search string is at least this long. 'lazy-highlight-initial-delay' still applies for shorter search strings, which avoids flicker in the search buffer due to too many matches being highlighted. ---- ++++ *** The default 'search-whitespace-regexp' value has changed. This used to be "\\s-+", which meant that it was mode-dependent whether newlines were included in the whitespace set. This has now been