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:
parent
9fe3bdf25d
commit
3f03f6284a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue