aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-24 17:01:46 +0000
committerRichard M. Stallman1997-07-24 17:01:46 +0000
commit4867f7b269ed1af64fffbe882fb9e7d0d6df4c89 (patch)
treeb7871018e9673e0041da1c6cad61a8a04edf6e4a
parent2ee3abaa317a2c964b685296b0ba44af4e8b30c1 (diff)
downloademacs-4867f7b269ed1af64fffbe882fb9e7d0d6df4c89.tar.gz
emacs-4867f7b269ed1af64fffbe882fb9e7d0d6df4c89.zip
(read-quoted-char): Convert function keys like Return
into ASCII equivalents.
-rw-r--r--lisp/subr.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 0fa6193bd33..14ae2ba3e85 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -690,6 +690,11 @@ any other non-digit terminates the character code and is then used as input."))
690 (and prompt (message "%s-" prompt)) 690 (and prompt (message "%s-" prompt))
691 (setq char (read-event)) 691 (setq char (read-event))
692 (if inhibit-quit (setq quit-flag nil))) 692 (if inhibit-quit (setq quit-flag nil)))
693 ;; Translate TAB key into control-I ASCII character, and so on.
694 (and char
695 (let ((translated (lookup-key function-key-map (vector char))))
696 (if translated
697 (setq char (aref translated 0)))))
693 (cond ((null char)) 698 (cond ((null char))
694 ((not (integerp char)) 699 ((not (integerp char))
695 (setq unread-command-events (list char) 700 (setq unread-command-events (list char)