projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f36fc1
)
Disable text conversion in map-ynp
author
Po Lu
<luangruo@yahoo.com>
Mon, 6 May 2024 07:53:49 +0000
(15:53 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 6 May 2024 07:59:48 +0000
(15:59 +0800)
* lisp/emacs-lisp/map-ynp.el (map-y-or-n-p): Read response with
read-key, not read-char.
lisp/emacs-lisp/map-ynp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/map-ynp.el
b/lisp/emacs-lisp/map-ynp.el
index b603f2e6d0bd0feaa11f6418ca754f33b59cdbe5..d769b7ace6476c9aedcbc83bc7e5818b160885d6 100644
(file)
--- 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