diff options
| author | Spencer Baugh | 2023-11-10 11:27:10 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-15 19:12:46 +0200 |
| commit | 7cfe088bc35f14391014b4f93a784fdef412da9c (patch) | |
| tree | d3d34cab3ab9601c2b9aa090385eea30ecbc5a56 /java/debug.sh | |
| parent | 1a1f47e4a1fb70e6810f9eabd0f1826b71a2bcb0 (diff) | |
| download | emacs-7cfe088bc35f14391014b4f93a784fdef412da9c.tar.gz emacs-7cfe088bc35f14391014b4f93a784fdef412da9c.zip | |
Don't infinite loop in map-y-or-n-p if at the end of kmacro
Previously, if map-y-or-n-p got -1 from read-event (indicating no
input due to the end of a keyboard macro), it would just infinite
loop.
Now it behaves like other commands which use read-event/read-char/etc,
and just errors when we try to look up -1 in our keymap and find
nothing.
Also, just for the sake of users, print a slightly prettier message
when this happens.
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Don't loop if we reach
the end of a keyboard macro. (Bug#67046)
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions