aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2019-11-10 00:04:13 +0200
committerJuri Linkov2019-11-10 00:04:13 +0200
commita26a8cc1c85f29fb11209c16d53a8ae4e4ab7ced (patch)
tree73026908995a8daa8a96a6b1d0ebd9b64e169992 /etc
parent898cdc67f19ca15f4ac2b447adf350188baef604 (diff)
downloademacs-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/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4e6a70f6931..f2685a1bfd8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
724at the end of the active minibuffer. 724at 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'.