[emacs-berlin] repeat-mode: problem with keymap property value
Narendra Joshi
narendraj9 at gmail.com
Thu Nov 25 17:00:00 UTC 2021
Hey,
I figured out what the problem was with `repeat-mode' during the last
meetup: https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01691.html
The reason it stopped working after the first error is that
`repeat-mode' sets up a `post-command-hook' which is (quoting its doc here):
Normal hook run after each command is executed.
If an unhandled error happens in running this hook,
the function in which the error occurred is unconditionally removed,
since
otherwise the error might happen repeatedly and make Emacs
nonfunctional.
Interestingly, `repeat-mode' stays enabled but `post-command-hook' no
longer contains `repeat-post-hook' that's supposed to do the work, once
an error occurs in `repeat-post-hook'. That's why the keymap we set up
wasn't
getting enabled.
Best regards,
Narendra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailb.org/pipermail/emacs-berlin/attachments/20211125/eb336df4/attachment.htm>
More information about the emacs-berlin
mailing list