<div dir="ltr"><div>Hey,<br><br>I figured out what the problem was with `repeat-mode' during the last<br>meetup: <a href="https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01691.html">https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01691.html</a><br><br>The reason it stopped working after the first error is that<br>`repeat-mode' sets up a `post-command-hook' which is (quoting its doc here):<br><br><blockquote>     Normal hook run after each command is executed.<br>     If an unhandled error happens in running this hook,<br>     the function in which the error occurred is unconditionally removed, since<br>     otherwise the error might happen repeatedly and make Emacs nonfunctional.<br></blockquote><br>Interestingly, `repeat-mode' stays enabled but `post-command-hook' no<br>longer contains `repeat-post-hook' that's supposed to do the work, once<br>an error occurs in `repeat-post-hook'. That's why the keymap we set up wasn't<br>getting enabled.<br><br>Best regards,<br></div>Narendra<br></div>