[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Electricity in keyboard macros
From: |
Fabrice Bauzac |
Subject: |
Electricity in keyboard macros |
Date: |
Thu, 9 Aug 2001 12:08:36 +0200 |
User-agent: |
Mutt/1.3.18i |
Hello,
I'll introduce my problem in a small example. Create a C file (for
example "foo.c") with these contents:
struct pair thing[] = {
val, val,
val, val,
val, val,
val, val,
val, val,
val, val,
val, val,
val, val
};
Now I want to convert it into the more structural form
struct pair thing[] = {
{ val, val },
{ val, val },
...
};
So I use a keyboard macro:
(setq last-kbd-macro
"\C-a\C-f\C-f{ \C-e\C-? },\C-a\C-n")
It works, but the problem is that each time the macro inserts an
(electric) '}', the point temporarily shows the matching '{' during
one second. Imagine a case when you have to repeat the macro 60
times: it will last one minute.
I think the electric code should test for the `executing-macro'
variable before waiting one second...
Am I wrong?
--
fabrice bauzac
Software should be free.
- Electricity in keyboard macros,
Fabrice Bauzac <=
- Re: Electricity in keyboard macros, Eli Zaretskii, 2001/08/10
- Re: Electricity in keyboard macros, Fabrice Bauzac, 2001/08/10
- Re: Electricity in keyboard macros, Eli Zaretskii, 2001/08/10
- Re: Electricity in keyboard macros, Christopher S. Kush, 2001/08/10
- Re: Electricity in keyboard macros, Eli Zaretskii, 2001/08/11
- Re: Electricity in keyboard macros, Fabrice Bauzac, 2001/08/15
- Re: Electricity in keyboard macros, Eli Zaretskii, 2001/08/16
- Re: Electricity in keyboard macros, Fabrice Bauzac, 2001/08/16
- Re: Electricity in keyboard macros, Eli Zaretskii, 2001/08/16
- Re: Electricity in keyboard macros, Fabrice Bauzac, 2001/08/17