[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange behaviour of `isearch-forward-regexp'
From: |
Kevin Rodgers |
Subject: |
Re: strange behaviour of `isearch-forward-regexp' |
Date: |
Mon, 30 Jun 2003 09:46:30 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 |
Paul Pogonyshev wrote:
GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2003-06-24 on localhost.localdomain
While searching for " ?t" regular expression, letter 't' in word
"reset" doesn't match. This is very strange since searching for
"t?t" and even "^I?t" does match the letter. Is it "a feature"
or a bug somewhere in Emacs?
It's a feature, though it doesn't appear to be documented in the Emacs manual:
| search-whitespace-regexp's value is "\\s-+"
|
| Documentation:
| *If non-nil, regular expression to match a sequence of whitespace chars.
| This applies to regular expression incremental search.
| You might want to use something like "[ \t\r\n]+" instead.
| In the Customization buffer, that is `[' followed by a space,
| a tab, a carriage return (control-M), a newline, and `]+'.
You need to type `C-s C-q SPC ? t', or set search-whitespace-regexp to nil.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>