aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-05-18 16:51:12 -0400
committerChong Yidong2010-05-18 16:51:12 -0400
commit29031d52feb109fa43ad08c4451713face97eb85 (patch)
tree952aef2b666753a4d667b8fe4172354b0ed9c6f8
parent754790b6c5a0ebe9cc1f2463d9446c5cb19b4264 (diff)
downloademacs-29031d52feb109fa43ad08c4451713face97eb85.tar.gz
emacs-29031d52feb109fa43ad08c4451713face97eb85.zip
Stefan Monnier <monnier@iro.umontreal.ca>
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/subr.el10
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ac83cdb0c2..1da680a68f9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * subr.el (read-quoted-char): Resolve modifiers after key
4 remapping (bug#6212).
5
12010-05-11 Stefan Monnier <monnier@iro.umontreal.ca> 62010-05-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * tmm.el (tmm-prompt): Don't try to precompute bindings. 8 * tmm.el (tmm-prompt): Don't try to precompute bindings.
diff --git a/lisp/subr.el b/lisp/subr.el
index 71aa76aadfc..e964a0ef5d4 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1871,16 +1871,14 @@ any other non-digit terminates the character code and is then used as input."))
1871 (if inhibit-quit (setq quit-flag nil))) 1871 (if inhibit-quit (setq quit-flag nil)))
1872 ;; Translate TAB key into control-I ASCII character, and so on. 1872 ;; Translate TAB key into control-I ASCII character, and so on.
1873 ;; Note: `read-char' does it using the `ascii-character' property. 1873 ;; Note: `read-char' does it using the `ascii-character' property.
1874 ;; We could try and use read-key-sequence instead, but then C-q ESC 1874 ;; We should try and use read-key instead.
1875 ;; or C-q C-x might not return immediately since ESC or C-x might be 1875 (let ((translation (lookup-key local-function-key-map (vector char))))
1876 ;; bound to some prefix in function-key-map or key-translation-map. 1876 (if (arrayp translation)
1877 (setq translated (aref translation 0))))
1877 (setq translated 1878 (setq translated
1878 (if (integerp char) 1879 (if (integerp char)
1879 (char-resolve-modifiers char) 1880 (char-resolve-modifiers char)
1880 char)) 1881 char))
1881 (let ((translation (lookup-key local-function-key-map (vector char))))
1882 (if (arrayp translation)
1883 (setq translated (aref translation 0))))
1884 (cond ((null translated)) 1882 (cond ((null translated))
1885 ((not (integerp translated)) 1883 ((not (integerp translated))
1886 (setq unread-command-events (list char) 1884 (setq unread-command-events (list char)