From: Ding Lei <dinglei@ipanel.cn>
Subject: Infinite Multiline replacement problem
Date: Sun, 27 Jun 2004 15:17:13 +0800 [thread overview]
Message-ID: <87smchzczq.fsf@dinglei.ipanel.com.cn> (raw)
Hello list,
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*.
Thank you.
--
Yours,
<<<::::: D i n g L e i ::::::>>
|| ||
|| Ext: 8106 ||
|| Email: <dinglei [A] ipanel [O] cn> ||
|| Dept. Of Technology/Engineering ||
|| Embedded Internet Solutions Inc. ||
|| ||
<(((((( ===================== )))))>>>
next reply other threads:[~2004-06-27 7:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-27 7:17 Ding Lei [this message]
2004-06-28 20:04 ` Infinite Multiline replacement problem Kevin Rodgers
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=87smchzczq.fsf@dinglei.ipanel.com.cn \
--to=dinglei@ipanel.cn \
/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).