diff options
| author | Noam Postavsky | 2019-05-21 20:38:00 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2019-05-26 08:16:23 -0400 |
| commit | 3f03f6284a093d69086773226bc2273cf62f5e85 (patch) | |
| tree | 7c46b79b039fb9f1a84556f37dd51ac2d6ec9bbc | |
| parent | 9fe3bdf25d63f441e973cdcf88de0b26b53a54a3 (diff) | |
| download | emacs-3f03f6284a093d69086773226bc2273cf62f5e85.tar.gz emacs-3f03f6284a093d69086773226bc2273cf62f5e85.zip | |
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'.
| -rw-r--r-- | lisp/emacs-lisp/rmc.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/rmc.el b/lisp/emacs-lisp/rmc.el index 6d1adae9749..47f3b8dc9cf 100644 --- a/lisp/emacs-lisp/rmc.el +++ b/lisp/emacs-lisp/rmc.el | |||
| @@ -118,7 +118,7 @@ Usage example: | |||
| 118 | choices))) | 118 | choices))) |
| 119 | (condition-case nil | 119 | (condition-case nil |
| 120 | (let ((cursor-in-echo-area t)) | 120 | (let ((cursor-in-echo-area t)) |
| 121 | (read-char)) | 121 | (read-event)) |
| 122 | (error nil)))) | 122 | (error nil)))) |
| 123 | (setq answer (lookup-key query-replace-map (vector tchar) t)) | 123 | (setq answer (lookup-key query-replace-map (vector tchar) t)) |
| 124 | (setq tchar | 124 | (setq tchar |