From: Juri Linkov Date: Mon, 9 Dec 2019 23:53:16 +0000 (+0200) Subject: * lisp/emacs-lisp/map-ynp.el (read-answer): Use [remap self-insert-command] X-Git-Tag: emacs-27.0.90~397 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8d537e17349c02d981eabd92c78f60f73354798;p=emacs.git * lisp/emacs-lisp/map-ynp.el (read-answer): Use [remap self-insert-command] This reverts the last change that replaced [remap self-insert-command] with [t]. The user should have freedom of using any command in the minibuffer. (bug#32738) --- diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el index a83e2f1bfd0..f0c11c489a7 100644 --- a/lisp/emacs-lisp/map-ynp.el +++ b/lisp/emacs-lisp/map-ynp.el @@ -345,7 +345,7 @@ When `use-dialog-box' is t, pop up a dialog window to get user input." (delete-minibuffer-contents) (insert (nth 0 a)) (exit-minibuffer)))) - (define-key map [t] + (define-key map [remap self-insert-command] (lambda () (interactive) (delete-minibuffer-contents)