Avoid infloop in read-multiple-choice (Bug#32257)

* lisp/emacs-lisp/rmc.el (read-multiple-choice): Use `read-event'
which won't get stuck (return the same event over and over again) for
non-character events, unlike `read-char'.
This commit is contained in:
Noam Postavsky 2019-05-21 20:38:00 -04:00
parent 9fe3bdf25d
commit 3f03f6284a

View file

@ -118,7 +118,7 @@ Usage example:
choices)))
(condition-case nil
(let ((cursor-in-echo-area t))
(read-char))
(read-event))
(error nil))))
(setq answer (lookup-key query-replace-map (vector tchar) t))
(setq tchar