unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Infinite Multiline replacement problem
Date: Mon, 28 Jun 2004 14:04:57 -0600	[thread overview]
Message-ID: <40E079E9.2070503@yahoo.com> (raw)
In-Reply-To: 87smchzczq.fsf@dinglei.ipanel.com.cn

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

  reply	other threads:[~2004-06-28 20:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-27  7:17 Infinite Multiline replacement problem Ding Lei
2004-06-28 20:04 ` Kevin Rodgers [this message]
2004-06-29 10:05   ` Ding Lei
2004-06-29 18:39     ` Kevin Rodgers
     [not found] <mailman.2315.1088539167.1953.help-gnu-emacs@gnu.org>
2004-06-29 20:15 ` Kin Cho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E079E9.2070503@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).