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.
F3 boo F4
Now, if I press F4 I get:
Now if I redefine it again, I will get:
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
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