diff options
| author | Juri Linkov | 2019-11-10 00:04:13 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-11-10 00:04:13 +0200 |
| commit | a26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced (patch) | |
| tree | 73026908995a8daa8a96a6b1d0ebd9b64e169992 /etc | |
| parent | 898cdc67f19ca15f4ac2b447adf350188baef604 (diff) | |
| download | emacs-a26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced.tar.gz emacs-a26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced.zip | |
'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer (bug#38076)
* doc/lispref/minibuf.texi (Yes-or-No Queries): Update the fact
that y-or-n-p uses the minibuffer.
* lisp/subr.el (y-or-n-p-history-variable): New variable.
(y-or-n-p-map): New keymap.
(y-or-n-p-insert-y, y-or-n-p-insert-n, y-or-n-p-insert-other):
New commands.
(y-or-n-p): Rewrite to use read-from-minibuffer and make-composed-keymap
with y-or-n-p-map and query-replace-map.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -723,6 +723,9 @@ the minibuffer. If non-nil, point will move to the end of the prompt | |||
| 723 | *** Minibuffer now uses 'minibuffer-message' to display error messages | 723 | *** Minibuffer now uses 'minibuffer-message' to display error messages |
| 724 | at the end of the active minibuffer. | 724 | at the end of the active minibuffer. |
| 725 | 725 | ||
| 726 | +++ | ||
| 727 | *** 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer. | ||
| 728 | |||
| 726 | ** map.el | 729 | ** map.el |
| 727 | *** Now also understands plists. | 730 | *** Now also understands plists. |
| 728 | *** Now defined via generic functions that can be extended via 'cl-defmethod'. | 731 | *** Now defined via generic functions that can be extended via 'cl-defmethod'. |