diff options
| author | Eli Zaretskii | 2018-01-28 19:29:07 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-01-28 19:29:07 +0200 |
| commit | 194ded59904b77e7073e697ebf8eac08e05a7ed3 (patch) | |
| tree | 881f83f58bedce928d01552302c66f5c737cdd1f | |
| parent | 57a5461e6ea83d159dfb3d901722b846c6f4c931 (diff) | |
| download | emacs-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.texi | 19 |
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}: |
| 1188 | each space, or sequence of spaces, matches any sequence of one or more | 1188 | each space, or sequence of spaces, matches any sequence of one or more |
| 1189 | whitespace characters in the text. (Incremental regexp search has a | 1189 | whitespace characters in the text. (Incremental regexp search has a |
| 1190 | separate default; see @ref{Regexp Search}.) Hence, @samp{foo bar} | 1190 | separate default; see @ref{Regexp Search}.) Hence, @w{@samp{foo bar}} |
| 1191 | matches @samp{foo bar}, @samp{foo@w{ }bar}, @samp{foo@w{ }bar}, and | 1191 | matches @w{@samp{foo bar}}, @w{@samp{foo@ @ bar}}, |
| 1192 | so on (but not @samp{foobar}). More precisely, Emacs matches each | 1192 | @w{@samp{foo@ @ @ bar}}, and so on (but not @samp{foobar}). More |
| 1193 | sequence of space characters in the search string to a regular | 1193 | precisely, Emacs matches each sequence of space characters in the |
| 1194 | expression specified by the variable @code{search-whitespace-regexp}. | 1194 | search string to a regular expression specified by the variable |
| 1195 | For example, to make spaces match sequences of newlines as well as | 1195 | @code{search-whitespace-regexp}. For example, to make spaces match |
| 1196 | spaces, set it to @samp{"[[:space:]\n]+"}. The default value of this | 1196 | sequences of newlines as well as spaces, set it to |
| 1197 | variable depends on the buffer's major mode; most major modes classify | 1197 | @samp{"[[:space:]\n]+"}. The default value of this variable depends |
| 1198 | spaces, tabs, and formfeed characters as whitespace. | 1198 | on the buffer's major mode; most major modes classify spaces, tabs, |
| 1199 | and 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 |
| 1201 | space matching off by typing @kbd{M-s @key{SPC}} | 1202 | space matching off by typing @kbd{M-s @key{SPC}} |