aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
authorJuri Linkov2020-12-30 11:54:01 +0200
committerJuri Linkov2020-12-30 11:54:01 +0200
commitcd4a51695fddf2a76ae9ed71efa8bfb4a515b32e (patch)
tree0ed215c038a9a0e20232e0944ee58c181f6c281c /lisp/wid-edit.el
parentbaeb82df8bcb8dd7dd783dbfb5561415da4ea3a9 (diff)
downloademacs-cd4a51695fddf2a76ae9ed71efa8bfb4a515b32e.tar.gz
emacs-cd4a51695fddf2a76ae9ed71efa8bfb4a515b32e.zip
Add variables read-char-choice-use-read-key and y-or-n-p-use-read-key
* lisp/subr.el (read-char-choice-use-read-key): New variable. (read-char-choice): Use read-char-from-minibuffer when read-char-choice-use-read-key is nil. (y-or-n-p-use-read-key): New variable. (y-or-n-p): Restore old code that calls read-key to use it when y-or-n-p-use-read-key is non-nil. * lisp/dired-aux.el (dired--no-subst-ask, dired-query): * lisp/files.el (files--ask-user-about-large-file) (hack-local-variables-confirm): * lisp/userlock.el (ask-user-about-supersession-threat): * lisp/wid-edit.el (widget-choose): Revert to use read-char-choice instead of read-char-from-minibuffer. https://lists.gnu.org/archive/html/emacs-devel/2020-12/msg01919.html
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 8250316bcc7..bb5d26d29e9 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -338,7 +338,7 @@ in the key vector, as in the argument of `define-key'."
338 '(display-buffer-in-direction 338 '(display-buffer-in-direction
339 (direction . bottom) 339 (direction . bottom)
340 (window-height . fit-window-to-buffer))) 340 (window-height . fit-window-to-buffer)))
341 (setq value (read-char-from-minibuffer 341 (setq value (read-char-choice
342 (format "%s: " title) 342 (format "%s: " title)
343 (mapcar #'car alist))))) 343 (mapcar #'car alist)))))
344 (cdr (assoc value alist)))))) 344 (cdr (assoc value alist))))))