From: Po Lu Date: Mon, 6 May 2024 07:53:49 +0000 (+0800) Subject: Disable text conversion in map-ynp X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9490ca277929630e2ee47f83cef8cd87aeea9e28;p=emacs.git Disable text conversion in map-ynp * lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Read response with read-key, not read-char. (cherry picked from commit f50a58123a3d386b9bba7c4ba14df62479887bd4) --- diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el index b603f2e6d0b..d769b7ace64 100644 --- a/lisp/emacs-lisp/map-ynp.el +++ b/lisp/emacs-lisp/map-ynp.el @@ -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