]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable text conversion in map-ynp
authorPo Lu <luangruo@yahoo.com>
Mon, 6 May 2024 07:53:49 +0000 (15:53 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:56:41 +0000 (18:56 +0200)
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Read response with
read-key, not read-char.

(cherry picked from commit f50a58123a3d386b9bba7c4ba14df62479887bd4)

lisp/emacs-lisp/map-ynp.el

index b603f2e6d0bd0feaa11f6418ca754f33b59cdbe5..d769b7ace6476c9aedcbc83bc7e5818b160885d6 100644 (file)
@@ -168,7 +168,7 @@ The function's value is the number of actions taken."
                                (key-description (vector help-char)))
                       (if minibuffer-auto-raise
                           (raise-frame (window-frame (minibuffer-window))))
-                      (setq char (read-event))
+                      (setq char (read-key))
                       ;; Show the answer to the question.
                       (message "%s(y, n, !, ., q, %sor %s) %s"
                                prompt user-keys