Minor fixes in doc/emacs/search.texi
* doc/emacs/search.texi (Basic Isearch): Fix a typo. (Special Isearch): Use @w{} to generate several consecutive spaces with Texinfo 6. (Bug#21345)
This commit is contained in:
parent
46709093be
commit
ef4c2eac6c
1 changed files with 9 additions and 9 deletions
|
@ -80,10 +80,10 @@ past the end of the next occurrence of those characters in the buffer.
|
|||
|
||||
For instance, if you type @kbd{C-s} and then @kbd{F}, that puts the
|
||||
cursor after the first @samp{F} that occurs in the buffer after the
|
||||
starting point. Then if you then type @kbd{O}, the cursor moves to
|
||||
just after the first @samp{FO}; the @samp{F} in that @samp{FO} might
|
||||
not be the first @samp{F} previously found. After another @kbd{O},
|
||||
the cursor moves to just after the first @samp{FOO}.
|
||||
starting point. If you then type @kbd{O}, the cursor moves to just
|
||||
after the first @samp{FO}; the @samp{F} in that @samp{FO} might not be
|
||||
the first @samp{F} previously found. After another @kbd{O}, the
|
||||
cursor moves to just after the first @samp{FOO}.
|
||||
|
||||
@cindex faces for highlighting search matches
|
||||
@cindex isearch face
|
||||
|
@ -227,11 +227,11 @@ special effects.
|
|||
By default, incremental search performs @dfn{lax space matching}:
|
||||
each space, or sequence of spaces, matches any sequence of one or more
|
||||
spaces in the text. Hence, @samp{foo bar} matches @samp{foo bar},
|
||||
@samp{foo bar}, @samp{foo bar}, and so on (but not @samp{foobar}).
|
||||
More 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{foo@w{ }bar}, @samp{foo@w{ }bar}, and so on (but not
|
||||
@samp{foobar}). More 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]+"}.
|
||||
|
||||
To toggle lax space matching, type @kbd{M-s @key{SPC}}
|
||||
|
|
Loading…
Add table
Reference in a new issue