diff options
author | Juri Linkov <juri@linkov.net> | 2019-11-10 00:21:26 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2019-11-10 00:21:26 +0200 |
commit | 04ab67470706f1c66bdf08e4078ea3dffd79b41e (patch) | |
tree | b8468ce0cec9f91339b964931a81026623f3daa8 /lisp/emacs-lisp/map-ynp.el | |
parent | a26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced (diff) | |
download | emacs-04ab67470706f1c66bdf08e4078ea3dffd79b41e.tar.gz |
Add CHARS arg to read-char-from-minibuffer compatible with read-char-choice.
* lisp/simple.el (read-char-history):
Rename from read-char-from-minibuffer-history. (Bug#38076)
(read-char-from-minibuffer-insert-char):
Rename from read-char-from-minibuffer-self-insert.
(read-char-from-minibuffer-map-hash): New defconst.
(read-char-from-minibuffer-insert-other): New command.
(read-char-from-minibuffer): Add optional args CHARS and HISTORY.
(zap-to-char): Use 'read-char-history as HISTORY arg of
read-char-from-minibuffer.
* lisp/emacs-lisp/map-ynp.el (read-answer): Use sit-for instead of sleep-for.
Replace short answer history yes-or-no-p-history with read-char-history.
Diffstat (limited to 'lisp/emacs-lisp/map-ynp.el')
-rw-r--r-- | lisp/emacs-lisp/map-ynp.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el index a688330b74a..5c0e28eac9c 100644 --- a/lisp/emacs-lisp/map-ynp.el +++ b/lisp/emacs-lisp/map-ynp.el @@ -341,7 +341,7 @@ When `use-dialog-box' is t, pop up a dialog window to get user input." (delete-minibuffer-contents) (beep) (message message) - (sleep-for 2))) + (sit-for 2))) map) read-answer-map--memoize)))) answer) @@ -361,7 +361,7 @@ When `use-dialog-box' is t, pop up a dialog window to get user input." (short (read-from-minibuffer prompt nil short-answer-map nil - 'yes-or-no-p-history)) + 'read-char-history)) (t (read-from-minibuffer prompt nil nil nil @@ -381,7 +381,7 @@ When `use-dialog-box' is t, pop up a dialog window to get user input." ".\n"))) (beep) (message message) - (sleep-for 2))) + (sit-for 2))) answer)) ;;; map-ynp.el ends here |