Mercurial > emacs
changeset 4978:fec7580888dd
(map-y-or-n-p): Handle help-char values other than chars.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 11 Nov 1993 04:43:49 +0000 |
parents | 81c44a01ddda |
children | e3c47db646fd |
files | lisp/map-ynp.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/map-ynp.el Thu Nov 11 04:36:02 1993 +0000 +++ b/lisp/map-ynp.el Thu Nov 11 04:43:49 1993 +0000 @@ -121,12 +121,12 @@ (let ((cursor-in-echo-area (not no-cursor-in-echo-area))) (message "%s(y, n, !, ., q, %sor %s) " prompt user-keys - (key-description (char-to-string help-char))) + (key-description (vector help-char))) (setq char (read-event))) ;; Show the answer to the question. (message "%s(y, n, !, ., q, %sor %s) %s" prompt user-keys - (key-description (char-to-string help-char)) + (key-description (vector help-char)) (single-key-description char)) (setq def (lookup-key map (vector char))) (cond ((eq def 'exit) @@ -205,7 +205,7 @@ (t ;; Random char. (message "Type %s for help." - (key-description (char-to-string help-char))) + (key-description (vector help-char))) (beep) (sit-for 1) (setq next (` (lambda ()