]> code.delx.au - gnu-emacs/commitdiff
(map-y-or-n-p): Handle help-char values other than chars.
authorRichard M. Stallman <rms@gnu.org>
Thu, 11 Nov 1993 04:43:49 +0000 (04:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 11 Nov 1993 04:43:49 +0000 (04:43 +0000)
lisp/map-ynp.el

index 0e3f219c23cb2ec293bc93ffcd6b4495a3b0d08d..48dcbc35950b06000b12361e7870541c4e3de851 100644 (file)
@@ -121,12 +121,12 @@ Returns the number of actions taken."
                  (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 @@ the current %s and exit."
                        (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 ()