From: Juri Linkov <juri@jurta.org>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 17901@debbugs.gnu.org
Subject: bug#17901: 24.4.50; Doc Fix in "(emacs) Regexp Search"
Date: Thu, 03 Jul 2014 02:35:30 +0300 [thread overview]
Message-ID: <878uobuwm1.fsf@mail.jurta.org> (raw)
In-Reply-To: <CAH8Pv0iYNbBwYJwO_otGS=ScXDA2cu8DC0OOs5=8P0baO1oMwA@mail.gmail.com> (Dani Moncayo's message of "Wed, 2 Jul 2014 19:26:46 +0200")
> 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.
-@xref{Special 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
+@code{search-whitespace-regexp} 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
next prev parent reply other threads:[~2014-07-02 23:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 17:26 bug#17901: 24.4.50; Doc Fix in "(emacs) Regexp Search" Dani Moncayo
2014-07-02 23:35 ` Juri Linkov [this message]
2014-07-03 6:28 ` Dani Moncayo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uobuwm1.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=17901@debbugs.gnu.org \
--cc=dmoncayo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).