Question about writing a macro in XEMACS

Mohsen Owzar <[email protected]> Thu, 6 Jul 2006 09:12:01 +0200
Newsgroups gmane.emacs.xemacs.general
Message-ID <OF6E3C50F0.2349BC2B-ONC12571A3.0026703C-C12571A3.00278D7E@philips.com>
This is a multipart message in MIME format.
--=_alternative 00278D44C12571A3_=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear all,

I do not know if I'm writing this question to the correct address or not?
If not please let me know to where I have to write next time, if I have
questions belonging to XEMACS, because I'm new in this group.

And now my question:
I use often the macro feature in XEMACS. If I want to do some actions with
some replacements (e.g. "abc" with "cde") in a text file, I do it once and
save it in a macro and rerun it by using the "excecute-last-kbd-macro"=20
line
by line through the whole file.
If the replacements are always the same, my macro works fine. But if I
want to replace the sting "abc" with "cde1", "cde2", "cde3" ..., which=20
means
that each time the replacement is increased by a certain value, in this=20
case
one, how can I write my macro to achieve this replacement by using the=20
command
"excecute-last-kbd-macro"?

Best regards
Mohsen Owzar

=1F=1F=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Mohsen Owzar
Design Engineer
Business Line Cordless & MultiMedia

Philips AG, Binzstrasse 44
CH-8045 Z=FCrich
TEL: +41 44 465 12 68
FAX: +41 44 465 18 05
E-mail: [email protected]
--=_alternative 00278D44C12571A3_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"sans-serif">Dear all,</font>
<br>
<br><font size=3D2 face=3D"sans-serif">I do not know if I'm writing this qu=
estion
to the correct address or not?</font>
<br><font size=3D2 face=3D"sans-serif">If not please let me know to where I
have to write next time, if I have</font>
<br><font size=3D2 face=3D"sans-serif">questions belonging to XEMACS, becau=
se
I'm new in this group.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">And now my question:</font>
<br><font size=3D2 face=3D"sans-serif">I use often the macro feature in XEM=
ACS.
If I want to do some actions with</font>
<br><font size=3D2 face=3D"sans-serif">some replacements (e.g. &quot;abc&qu=
ot;
with &quot;cde&quot;) in a text file, I do it once and</font>
<br><font size=3D2 face=3D"sans-serif">save it in a macro and rerun it by u=
sing
the &quot;excecute-last-kbd-macro&quot; line</font>
<br><font size=3D2 face=3D"sans-serif">by line through the whole file.</fon=
t>
<br><font size=3D2 face=3D"sans-serif">If the replacements are always the s=
ame,
my macro works fine. But if I</font>
<br><font size=3D2 face=3D"sans-serif">want to replace the sting &quot;abc&=
quot;
with &quot;cde1&quot;, &quot;cde2&quot;, &quot;cde3&quot; ..., which means<=
/font>
<br><font size=3D2 face=3D"sans-serif">that each time the replacement is in=
creased
by a certain value, in this case</font>
<br><font size=3D2 face=3D"sans-serif">one, how can I write my macro to ach=
ieve
this replacement by using the command</font>
<br><font size=3D2 face=3D"sans-serif">&quot;excecute-last-kbd-macro&quot;?=
</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Best regards</font>
<br><font size=3D2 face=3D"sans-serif">Mohsen Owzar<br>
<br>
=1F=1F=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
Mohsen Owzar<br>
Design Engineer<br>
Business Line Cordless &amp; MultiMedia<br>
<br>
Philips AG, Binzstrasse 44<br>
CH-8045 Z=FCrich<br>
TEL: +41 44 465 12 68<br>
FAX: +41 44 465 18 05<br>
E-mail: [email protected]</font>
--=_alternative 00278D44C12571A3_=--