aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2018-01-28 19:29:07 +0200
committerEli Zaretskii2018-01-28 19:29:07 +0200
commit194ded59904b77e7073e697ebf8eac08e05a7ed3 (patch)
tree881f83f58bedce928d01552302c66f5c737cdd1f
parent57a5461e6ea83d159dfb3d901722b846c6f4c931 (diff)
downloademacs-194ded59904b77e7073e697ebf8eac08e05a7ed3.tar.gz
emacs-194ded59904b77e7073e697ebf8eac08e05a7ed3.zip
Fix multiple spaces in Emacs manual
* doc/emacs/search.texi (Lax Search): Fix multiple consecutive spaces in printed manual.
-rw-r--r--doc/emacs/search.texi19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index bb01f10d2cb..daaded19294 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1187,15 +1187,16 @@ tailor them to your needs.
1187 By default, search commands perform @dfn{lax space matching}: 1187 By default, search commands perform @dfn{lax space matching}:
1188each space, or sequence of spaces, matches any sequence of one or more 1188each space, or sequence of spaces, matches any sequence of one or more
1189whitespace characters in the text. (Incremental regexp search has a 1189whitespace characters in the text. (Incremental regexp search has a
1190separate default; see @ref{Regexp Search}.) Hence, @samp{foo bar} 1190separate default; see @ref{Regexp Search}.) Hence, @w{@samp{foo bar}}
1191matches @samp{foo bar}, @samp{foo@w{ }bar}, @samp{foo@w{ }bar}, and 1191matches @w{@samp{foo bar}}, @w{@samp{foo@ @ bar}},
1192so on (but not @samp{foobar}). More precisely, Emacs matches each 1192@w{@samp{foo@ @ @ bar}}, and so on (but not @samp{foobar}). More
1193sequence of space characters in the search string to a regular 1193precisely, Emacs matches each sequence of space characters in the
1194expression specified by the variable @code{search-whitespace-regexp}. 1194search string to a regular expression specified by the variable
1195For example, to make spaces match sequences of newlines as well as 1195@code{search-whitespace-regexp}. For example, to make spaces match
1196spaces, set it to @samp{"[[:space:]\n]+"}. The default value of this 1196sequences of newlines as well as spaces, set it to
1197variable depends on the buffer's major mode; most major modes classify 1197@samp{"[[:space:]\n]+"}. The default value of this variable depends
1198spaces, tabs, and formfeed characters as whitespace. 1198on the buffer's major mode; most major modes classify spaces, tabs,
1199and formfeed characters as whitespace.
1199 1200
1200 If you want whitespace characters to match exactly, you can turn lax 1201 If you want whitespace characters to match exactly, you can turn lax
1201space matching off by typing @kbd{M-s @key{SPC}} 1202space matching off by typing @kbd{M-s @key{SPC}}