[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite Multiline replacement problem
From: |
Kin Cho |
Subject: |
Re: Infinite Multiline replacement problem |
Date: |
29 Jun 2004 13:15:20 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Trying using a keyboard macro instead.
Do M-: (info " (elisp) Keyboard Macros") to see.
-kin
Ding Lei <dinglei@ipanel.cn> writes:
> 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. ||
> || ||
> <(((((( ===================== )))))>>>
>