aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Martín2021-10-05 09:37:56 +0200
committerLars Ingebrigtsen2021-10-05 09:37:56 +0200
commitfd7bb314128baa270d63c79fac97792be5a271e2 (patch)
tree0802334980ba98477b6493366a246316a71ea628
parent1f4ced47a1d2387be3c439f6858cf5fa1903cac8 (diff)
downloademacs-fd7bb314128baa270d63c79fac97792be5a271e2.tar.gz
emacs-fd7bb314128baa270d63c79fac97792be5a271e2.zip
Update documentation of search-whitespace-regexp
* doc/emacs/search.texi (Lax Search): Update the documentation about the default value of search-whitespace-regexp, as it is now independent of the major mode's syntax table (bug#51020).
-rw-r--r--doc/emacs/search.texi5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 8a101f1150b..761161be1c0 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1332,9 +1332,8 @@ precisely, Emacs matches each sequence of space characters in the
1332search string to a regular expression specified by the variable 1332search string to a regular expression specified by the variable
1333@code{search-whitespace-regexp}. For example, to make spaces match 1333@code{search-whitespace-regexp}. For example, to make spaces match
1334sequences of newlines as well as spaces, set it to 1334sequences of newlines as well as spaces, set it to
1335@samp{"[[:space:]\n]+"}. The default value of this variable depends 1335@samp{"[[:space:]\n]+"}. The default value of this variable considers
1336on the buffer's major mode; most major modes classify spaces, tabs, 1336any sequence of spaces and tab characters as whitespace.
1337and formfeed characters as whitespace.
1338 1337
1339 If you want whitespace characters to match exactly, you can turn lax 1338 If you want whitespace characters to match exactly, you can turn lax
1340space matching off by typing @kbd{M-s @key{SPC}} 1339space matching off by typing @kbd{M-s @key{SPC}}