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

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

Re: regexp-builder shows matches, re-search-forward fails?


From: Tassilo Horn
Subject: Re: regexp-builder shows matches, re-search-forward fails?
Date: Thu, 26 Jul 2012 15:29:40 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Thorsten Jolitz <tjolitz@googlemail.com> writes:

Hi Thorsten,

> More concrete:
>
> ,-------------------------
> | \\(^# Task: \\)\\(.*$\\)
> `-------------------------
>
> does match both tasks in 
>
> ,----------------------
> | # Task: A+B
> | 
> | (+ (read) (read))
> | 3 4
> | -> 7
> | 
> | 
> | # Task: Abstract type
> `----------------------
>
> in regexp-builder,

Ditto here.

> but
>
> ,------------------------------------------------
> | (re-search-forward  "\\(^# Task: \\)\\(.*$\\)")
> `------------------------------------------------
>
> with point at beginning of that buffer gives 'search-failed'. 

Not for me.  I can call exactly that twice and point moves to the end of
the # Task items as it should.  The third call then signal no match,
cause there are no more matches.

I used M-: to test that.  Maybe you're running the search on the wrong
buffer?

Bye,
Tassilo




reply via email to

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