* src/fns.c (Fyes_or_no_p): Minor doc fix.
2011-01-09 Chong Yidong <cyd@stupidchicken.com>
+ * subr.el (read-char-choice): Use read-key.
+
* custom.el (custom-safe-themes): Rename from
custom-safe-theme-files. Add :risky tag.
(load-theme, custom-theme-load-confirm): Save sha1 hashes to
(unless (get-text-property 0 'face prompt)
(setq prompt (propertize prompt 'face 'minibuffer-prompt)))
(setq char (let ((inhibit-quit inhibit-keyboard-quit))
- (read-event prompt)))
+ (read-key prompt)))
(cond
((not (numberp char)))
((memq char chars)
doc: /* Ask user a yes-or-no question. Return t if answer is yes.
The string to display to ask the question is obtained by
formatting the string PROMPT with arguments ARGS (see `format').
-The result should end in a space; `y-or-n-p' adds \"(yes or no) \"
-to it.
+The result should end in a space; `yes-or-no-p' adds
+\"(yes or no) \" to it.
The user must confirm the answer with RET, and can edit it until it
has been confirmed.