emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3f03f62: Avoid infloop in read-multiple-choice (Bug


From: Noam Postavsky
Subject: [Emacs-diffs] master 3f03f62: Avoid infloop in read-multiple-choice (Bug#32257)
Date: Sun, 26 May 2019 09:51:20 -0400 (EDT)

branch: master
commit 3f03f6284a093d69086773226bc2273cf62f5e85
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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'.
---
 lisp/emacs-lisp/rmc.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/rmc.el b/lisp/emacs-lisp/rmc.el
index 6d1adae..47f3b8d 100644
--- a/lisp/emacs-lisp/rmc.el
+++ b/lisp/emacs-lisp/rmc.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]