unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* strange behaviour of `isearch-forward-regexp'
@ 2003-06-30  1:23 Paul Pogonyshev
  2003-07-01  3:16 ` Paul Pogonyshev
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Pogonyshev @ 2003-06-30  1:23 UTC (permalink / raw)



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?

Paul Pogonyshev

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange behaviour of `isearch-forward-regexp'
       [not found] <mailman.8846.1056925282.21513.bug-gnu-emacs@gnu.org>
@ 2003-06-30 15:46 ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-06-30 15:46 UTC (permalink / raw)


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:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strange behaviour of `isearch-forward-regexp'
  2003-06-30  1:23 Paul Pogonyshev
@ 2003-07-01  3:16 ` Paul Pogonyshev
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2003-07-01  3:16 UTC (permalink / raw)


I wrote:
> 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?

Kevin Rodgers wrote:

> 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.

Wouldn't it solve the problem if `search-whitespacec-regexp' was set
to "\\(\\s-+\\)" by default?  Or would it break something match group
related?

And, btw, i'm not subscribed to the list.  Could you please CC answers
to me?

Paul Pogonyshev

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-01  3:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.8846.1056925282.21513.bug-gnu-emacs@gnu.org>
2003-06-30 15:46 ` strange behaviour of `isearch-forward-regexp' Kevin Rodgers
2003-06-30  1:23 Paul Pogonyshev
2003-07-01  3:16 ` Paul Pogonyshev

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).