[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kmacro-set-counter
From: |
Luc Teirlinck |
Subject: |
kmacro-set-counter |
Date: |
Fri, 8 Oct 2004 20:57:31 -0500 (CDT) |
`kmacro-set-macro' exhibits some bizarre behavior.
>From `(emacs)Keyboard Macro Counter':
The command `C-x C-k C-c' (`kmacro-set-counter') prompts for the
initial value of the keyboard macro counter if you use it before you
define a keyboard macro.
Now that is OK and unambiguous for the first keyboard macro one defines.
But what happens if we do this before defining the second (or later)
keyboard macro in the session? Let us see.
emacs -q
C-x ( a C-x C-k C-i RET C-x )
M-50 C-x C-k C-c
C-x ( b C-x C-k C-i RET C-x )
C-x e
C-x e
C-x C-k C-p
C-x e
Resulting scratch buffer:
a0
b50
b51
b52
a50
That is, when I used `M-50 C-x C-k C-c' before defining my second
macro, then that did not only initialize the counter for the _next_
macro to be defined to 50, it _also_ re-initialized the then head of
the macro ring to 50.
This clearly seems to be a bug, as it seems to be an obvious nuisance
that you can not do one without the other.
Sincerely,
Luc.
- kmacro-set-counter,
Luc Teirlinck <=