]> git.eshelyaron.com Git - emacs.git/commit
Add CHARS arg to read-char-from-minibuffer compatible with read-char-choice.
authorJuri Linkov <juri@linkov.net>
Sat, 9 Nov 2019 22:21:26 +0000 (00:21 +0200)
committerJuri Linkov <juri@linkov.net>
Sat, 9 Nov 2019 22:21:26 +0000 (00:21 +0200)
commit04ab67470706f1c66bdf08e4078ea3dffd79b41e
treeb8468ce0cec9f91339b964931a81026623f3daa8
parenta26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced
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.
lisp/emacs-lisp/map-ynp.el
lisp/simple.el