unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* regexp bug?
@ 2002-09-13  9:05 coriordan
  2002-09-13  9:30 ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: coriordan @ 2002-09-13  9:05 UTC (permalink / raw)


hello.

I think I have found a bug in Emacs.  I was searching
for sentences that were separated with only one space
so I used the regexp search with "\. [^ ]".  My
search kept matching sentences with two spaces.
The minibuffer was showing my regexp as "\.\s-+[^ ]".

Hope I'm not missing something, please CC me if there
is any discussion as I am not on this list.

Thanks.
Ciaran O'Riordan

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

* Re: regexp bug?
  2002-09-13  9:05 regexp bug? coriordan
@ 2002-09-13  9:30 ` Juanma Barranquero
  2002-09-13 10:47   ` coriordan
  0 siblings, 1 reply; 4+ messages in thread
From: Juanma Barranquero @ 2002-09-13  9:30 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Fri, 13 Sep 2002 10:05:51 +0100, coriordan@compsoc.com wrote:

> I was searching
> for sentences that were separated with only one space
> so I used the regexp search with "\. [^ ]".  My
> search kept matching sentences with two spaces.
> The minibuffer was showing my regexp as "\.\s-+[^ ]".

I bet that happened while you used `isearch-forward-regexp'.

Please check the docstring of the variable `search-whitespace-regexp'.


                                                           /L/e/k/t/u

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

* Re: regexp bug?
  2002-09-13  9:30 ` Juanma Barranquero
@ 2002-09-13 10:47   ` coriordan
  2002-09-13 11:32     ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: coriordan @ 2002-09-13 10:47 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Fri, Sep 13, 2002 at 11:30:45AM +0200, Juanma Barranquero wrote:
> 
> > I was searching[...]
> 
> I bet that happened while you used `isearch-forward-regexp'.
> 
> Please check the docstring of the variable `search-whitespace-regexp'.

oh, it's a feature ;)

sorry for my laziness, thanks.

Ciaran O'Riordan

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

* Re: regexp bug?
  2002-09-13 10:47   ` coriordan
@ 2002-09-13 11:32     ` Juanma Barranquero
  0 siblings, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2002-09-13 11:32 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Fri, 13 Sep 2002 11:47:37 +0100, coriordan@compsoc.com wrote:

> oh, it's a feature ;)

That I didn't know, I found it while researching your bug report.

> sorry for my laziness, thanks.

No problem.

BTW, I you don't know already, I'll suggest taking a look into
`highlight-lines-matching-regexp' (from hi-lock.el), `occur' and
`re-builder'. Very handy.


                                                           /L/e/k/t/u

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

end of thread, other threads:[~2002-09-13 11:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13  9:05 regexp bug? coriordan
2002-09-13  9:30 ` Juanma Barranquero
2002-09-13 10:47   ` coriordan
2002-09-13 11:32     ` Juanma Barranquero

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