diff options
| author | Chong Yidong | 2011-01-09 09:26:29 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-01-09 09:26:29 -0500 |
| commit | 973f1f2a8155542e97b9043ef7d233a93212a0fa (patch) | |
| tree | c6969c7393ab4d75a802871aaccc424d652a4bbc | |
| parent | b7617f6d8b78434a5b208df8a17a8cf8d68b4d7c (diff) | |
| download | emacs-973f1f2a8155542e97b9043ef7d233a93212a0fa.tar.gz emacs-973f1f2a8155542e97b9043ef7d233a93212a0fa.zip | |
* lisp/subr.el (read-char-choice): Use read-key. Suggested by Stefan.
* src/fns.c (Fyes_or_no_p): Minor doc fix.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 2 | ||||
| -rw-r--r-- | src/fns.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c09c89a5efa..6da2fe1abb3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-01-09 Chong Yidong <cyd@stupidchicken.com> | 1 | 2011-01-09 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * subr.el (read-char-choice): Use read-key. | ||
| 4 | |||
| 3 | * custom.el (custom-safe-themes): Rename from | 5 | * custom.el (custom-safe-themes): Rename from |
| 4 | custom-safe-theme-files. Add :risky tag. | 6 | custom-safe-theme-files. Add :risky tag. |
| 5 | (load-theme, custom-theme-load-confirm): Save sha1 hashes to | 7 | (load-theme, custom-theme-load-confirm): Save sha1 hashes to |
diff --git a/lisp/subr.el b/lisp/subr.el index 8294ab17782..536e6c262bd 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1985,7 +1985,7 @@ keyboard-quit events while waiting for a valid input." | |||
| 1985 | (unless (get-text-property 0 'face prompt) | 1985 | (unless (get-text-property 0 'face prompt) |
| 1986 | (setq prompt (propertize prompt 'face 'minibuffer-prompt))) | 1986 | (setq prompt (propertize prompt 'face 'minibuffer-prompt))) |
| 1987 | (setq char (let ((inhibit-quit inhibit-keyboard-quit)) | 1987 | (setq char (let ((inhibit-quit inhibit-keyboard-quit)) |
| 1988 | (read-event prompt))) | 1988 | (read-key prompt))) |
| 1989 | (cond | 1989 | (cond |
| 1990 | ((not (numberp char))) | 1990 | ((not (numberp char))) |
| 1991 | ((memq char chars) | 1991 | ((memq char chars) |
| @@ -2464,8 +2464,8 @@ DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, MANY, 0, | |||
| 2464 | doc: /* Ask user a yes-or-no question. Return t if answer is yes. | 2464 | doc: /* Ask user a yes-or-no question. Return t if answer is yes. |
| 2465 | The string to display to ask the question is obtained by | 2465 | The string to display to ask the question is obtained by |
| 2466 | formatting the string PROMPT with arguments ARGS (see `format'). | 2466 | formatting the string PROMPT with arguments ARGS (see `format'). |
| 2467 | The result should end in a space; `y-or-n-p' adds \"(yes or no) \" | 2467 | The result should end in a space; `yes-or-no-p' adds |
| 2468 | to it. | 2468 | \"(yes or no) \" to it. |
| 2469 | 2469 | ||
| 2470 | The user must confirm the answer with RET, and can edit it until it | 2470 | The user must confirm the answer with RET, and can edit it until it |
| 2471 | has been confirmed. | 2471 | has been confirmed. |