From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: regexp-builder shows matches, re-search-forward fails? Date: Thu, 26 Jul 2012 19:36:14 +0800 Message-ID: <871ujyu53l.fsf@ericabrahamsen.net> References: <87394eeqx3.fsf@googlemail.com> <81lii623nq.fsf@gmail.com> <87y5m6db8r.fsf@googlemail.com> <81zk6m9334.fsf@gmail.com> <87lii6daap.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1343302601 15902 80.91.229.3 (26 Jul 2012 11:36:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2012 11:36:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 13:36:41 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SuMMz-00036k-9p for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 13:36:41 +0200 Original-Received: from localhost ([::1]:34164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuMMy-0001vU-FF for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jul 2012 07:36:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuMMp-0001i8-BG for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 07:36:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SuMMj-0000co-KR for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 07:36:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:55816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SuMMj-0000cT-0J for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 07:36:25 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SuMMh-0002wH-6I for help-gnu-emacs@gnu.org; Thu, 26 Jul 2012 13:36:23 +0200 Original-Received: from 50-56-99-223.static.cloud-ips.com ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jul 2012 13:36:23 +0200 Original-Received: from eric by 50-56-99-223.static.cloud-ips.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Jul 2012 13:36:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 50-56-99-223.static.cloud-ips.com X-Pgp-Key: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xC98BAE7B99D0D373 X-Pgp-Fingerprint: 8E19 28A9 2B51 0C67 565D DB34 C98B AE7B 99D0 D373 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:UwdrUZbr6WHs8eaFOGxn3uyJPJc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86065 Archived-At: On Thu, Jul 26 2012, Thorsten Jolitz wrote: > Jambunathan K 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