aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2008-03-05 04:29:53 +0000
committerKenichi Handa2008-03-05 04:29:53 +0000
commite4c3c5887bc84709a269cfe67bebdfc66831af96 (patch)
tree3ca5d63ff47f5658309d713476ffd70ea1fd9459
parentfb26c2afce8201277010c833e466585869cd9a5c (diff)
downloademacs-e4c3c5887bc84709a269cfe67bebdfc66831af96.tar.gz
emacs-e4c3c5887bc84709a269cfe67bebdfc66831af96.zip
(read-quoted-char): Resolve modifers of the character event.
-rw-r--r--lisp/subr.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 679aeed876f..79de788c365 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1693,7 +1693,10 @@ any other non-digit terminates the character code and is then used as input."))
1693 ;; We could try and use read-key-sequence instead, but then C-q ESC 1693 ;; We could try and use read-key-sequence instead, but then C-q ESC
1694 ;; or C-q C-x might not return immediately since ESC or C-x might be 1694 ;; or C-q C-x might not return immediately since ESC or C-x might be
1695 ;; bound to some prefix in function-key-map or key-translation-map. 1695 ;; bound to some prefix in function-key-map or key-translation-map.
1696 (setq translated char) 1696 (setq translated
1697 (if (integerp char)
1698 (char-resolve-modifers char)
1699 char))
1697 (let ((translation (lookup-key local-function-key-map (vector char)))) 1700 (let ((translation (lookup-key local-function-key-map (vector char))))
1698 (if (arrayp translation) 1701 (if (arrayp translation)
1699 (setq translated (aref translation 0)))) 1702 (setq translated (aref translation 0))))