From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ding Lei Newsgroups: gmane.emacs.help Subject: Re: Infinite Multiline replacement problem Date: Tue, 29 Jun 2004 18:05:07 +0800 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040629100507.GA10839@ipanel.cn> References: <87smchzczq.fsf@dinglei.ipanel.com.cn> <40E079E9.2070503@yahoo.com> Reply-To: Ding Lei NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1088503039 22161 80.91.224.253 (29 Jun 2004 09:57:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2004 09:57:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 11:57:06 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfFMQ-0000WS-00 for ; Tue, 29 Jun 2004 11:57:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfFO4-0005mL-Nc for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2004 05:58:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BfFNu-0005lV-LO for help-gnu-emacs@gnu.org; Tue, 29 Jun 2004 05:58:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BfFNs-0005lI-N2 for help-gnu-emacs@gnu.org; Tue, 29 Jun 2004 05:58:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfFNs-0005lF-Iz for help-gnu-emacs@gnu.org; Tue, 29 Jun 2004 05:58:36 -0400 Original-Received: from [221.4.106.43] (helo=ipanel.cn) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BfFMA-00030Y-9Q for help-gnu-emacs@gnu.org; Tue, 29 Jun 2004 05:56:51 -0400 Original-Received: by ipanel.cn (Postfix, from userid 1000) id 2270B38EB8; Tue, 29 Jun 2004 18:05:08 +0800 (CST) Original-To: Kevin Rodgers Mail-Followup-To: Kevin Rodgers , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <40E079E9.2070503@yahoo.com> User-Agent: Mutt/1.5.6i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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 Xref: main.gmane.org gmane.emacs.help:19050 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19050 Hi Kevin, I'v tried the stable release and also CVS one. I wonder how did you test it? the problem might occurs when there are several occurrences. Ding Lei On Mon, Jun 28, 2004 at 02:04:57PM -0600, Kevin Rodgers wrote: > Ding Lei wrote: > > I tried to use regexp replace to do a multiline replacement, but > > Emacs replaces one occurrence again and again (infinite) ... > > Here's the regexp I use, > > Replace: \*/[Ctrl-q][Ctrl-j]public void final > > With: *@ejb.persistence[Ctrl-q][Ctrl-j]*/[Ctrl-q][Ctrl-j]public void final > > > > As you could see, what I want to do is insert an additional > > "@ejb.persistence" string before the line "*/". But emacs always > > replaces the first occurrence, and the result is that numerous > > "*@ejb.persistence" string is inserted until *deadlock*. > > It works for me in Emacs 21.3. What version are you using? > > -- > Kevin Rodgers > > > > > _______________________________________________ > Help-gnu-emacs mailing list > Help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs -- Yours, <<<::::: D i n g L e i ::::::>> || || || Ext: 8106 || || Email: || || Dept. Of Technology/Engineering || || Embedded Internet Solutions Inc. || || || <(((((( ===================== )))))>>> Here is the fact of the week, maybe even the fact of the month. According to probably reliable sources, the Coca-Cola people are experiencing severe marketing anxiety in China. The words "Coca-Cola" translate into Chinese as either (depending on the inflection) "wax-fattened mare" or "bite the wax tadpole". Bite the wax tadpole. There is a sort of rough justice, is there not? The trouble with this fact, as lovely as it is, is that it's hard to get a whole column out of it. I'd like to teach the world to bite a wax tadpole. Coke -- it's the real wax-fattened mare. Not bad, but broad satiric vistas do not open up. -- John Carrol, San Francisco Chronicle