bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17901: 24.4.50; Doc Fix in "(emacs) Regexp Search"


From: Juri Linkov
Subject: bug#17901: 24.4.50; Doc Fix in "(emacs) Regexp Search"
Date: Thu, 03 Jul 2014 02:35:30 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)

> In info node "(emacs) Regexp Search", I've found this paragraph:
>
>      Just as in ordinary incremental search, any <SPC> typed in
>   incremental regexp search matches any sequence of one or more whitespace
>   characters.  The variable ‘search-whitespace-regexp’ specifies the
>   regexp for the lax space matching, and ‘M-s <SPC>’
>   (‘isearch-toggle-lax-whitespace’) toggles the feature.  *Note Special
>   Isearch::.
>
> I think that this paragraph would need some rewording, because the
> variable 'isearch-regexp-lax-whitespace' is nil by default (unlike
> 'isearch-lax-whitespace', which is t by default).

Thanks, the doc could be improved as follows:

=== modified file 'doc/emacs/search.texi'
--- doc/emacs/search.texi       2014-04-29 14:45:24 +0000
+++ doc/emacs/search.texi       2014-07-02 23:34:54 +0000
@@ -602,12 +602,13 @@ (@code{isearch-backward-regexp}), @kbd{C
 They also have separate search rings, which you can access with
 @kbd{M-p} and @kbd{M-n}.
 
-  Just as in ordinary incremental search, any @key{SPC} typed in
-incremental regexp search matches any sequence of one or more
-whitespace characters.  The variable @code{search-whitespace-regexp}
-specifies the regexp for the lax space matching, and @kbd{M-s @key{SPC}}
-(@code{isearch-toggle-lax-whitespace}) toggles the feature.
address@hidden Isearch}.
+  Unlike ordinary incremental search, incremental regexp search
+do not use lax space matching by default.  To toggle this feature
+use @kbd{M-s @key{SPC}} (@code{isearch-toggle-lax-whitespace}).
+Then any @key{SPC} typed in incremental regexp search will match
+any sequence of one or more whitespace characters.  The variable
address@hidden specifies the regexp for the lax
+space matching.  @xref{Special Isearch}.
 
   In some cases, adding characters to the regexp in an incremental
 regexp search can make the cursor move back and start again.  For






reply via email to

[Prev in Thread] Current Thread [Next in Thread]