I'm reading GNU Emacs Manual to learn how to use Emacs in its full power. I now I'm trying to make use of keyboard macros. It's fairly easy, but I cannot understand why the first defined macro repeats infinitely, while all subsequent macros are executed only once (on pressing F4).
Is it normal behavior? I like when I press F4 and the macro is executed once. I don't see why the first defined macro should repeat indefinitely.
Example:
F3 boo F4
Now, if I press F4 I get:
booboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboobooboob
Now if I redefine it again, I will get:
booboo
What's going on?
I think it has something to do with Flyspell. I use Flyspell always. It's active in text mode and also in programming modes, but via flyspell-prog-mode
. I think that Flyspell is involved here because of this part of my *Messages*
buffer:
Defining kbd macro...
Keyboard macro defined
Error in post-command-hook (flyspell-post-command-hook): (error "Variable binding depth exceeds max-specpdl-size")
After 0 kbd macro iterations: self-insert-command: Variable binding depth exceeds max-specpdl-size
Defining kbd macro...
Keyboard macro defined
Result of C-u M-x emacs-version:
GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) of 2014-10-21 on bitzer.hoetzel.info
C-u 0 F4
, but the way you describe it, it should do it just once.C-u M-x emacs-version
in the scratch buffer, then copy the result and paste it here.) (Edit: I just noticed you updated the question. Well, looks like you found the culprit. You could also start emacs with the-Q
flag and see if the bug happens then.)emacs -Q
, then submit the details viaM-x report-emacs-bug
report-emacs-bug
command to generate the message template, though.