diff options
| author | Richard M. Stallman | 1993-05-15 18:05:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-15 18:05:42 +0000 |
| commit | 31ba9d398ecd705ef9202b308fb76b7a90f12245 (patch) | |
| tree | 7375a7fed2e49ec235fcbf15eff3e9c0fb3a3fdd | |
| parent | 66afa119d0028760f010b389ed14105f603811a1 (diff) | |
| download | emacs-31ba9d398ecd705ef9202b308fb76b7a90f12245.tar.gz emacs-31ba9d398ecd705ef9202b308fb76b7a90f12245.zip | |
(map-y-or-n-p): Show the answers in the echo area.
| -rw-r--r-- | lisp/map-ynp.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el index 22e9973cb01..c64b1c78ae1 100644 --- a/lisp/map-ynp.el +++ b/lisp/map-ynp.el | |||
| @@ -118,6 +118,11 @@ Returns the number of actions taken." | |||
| 118 | prompt user-keys | 118 | prompt user-keys |
| 119 | (key-description (char-to-string help-char))) | 119 | (key-description (char-to-string help-char))) |
| 120 | (setq char (read-event))) | 120 | (setq char (read-event))) |
| 121 | ;; Show the answer to the question. | ||
| 122 | (message "%s(y, n, !, ., q, %sor %s) %s" | ||
| 123 | prompt user-keys | ||
| 124 | (key-description (char-to-string help-char)) | ||
| 125 | (single-key-description char)) | ||
| 121 | (setq def (lookup-key map (vector char))) | 126 | (setq def (lookup-key map (vector char))) |
| 122 | (cond ((eq def 'exit) | 127 | (cond ((eq def 'exit) |
| 123 | (setq next (function (lambda () nil)))) | 128 | (setq next (function (lambda () nil)))) |