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: Eric Abrahamsen
Subject: Re: regexp-builder shows matches, re-search-forward fails?
Date: Thu, 26 Jul 2012 19:36:14 +0800
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

On Thu, Jul 26 2012, Thorsten Jolitz wrote:

> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> What is your value of `reb-re-syntax'.  Is it in read format?
>
> yes. 
>
> But I think I got confused, because I used re-search-forward in a while
> loop and tried to replace the matches, but the REPLACEMENT didn't work,
> the search did - the message "search-failed" was only from the last
> iteration in the while loop when no matches were left. 

Just a note, the second optional argument to re-search-forward is
NOERROR: set to 't', it will allow the search to halt quietly. I kind of
wish that was the default.

-- 
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11)
 of 2012-07-23 on pellet




reply via email to

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