]> git.eshelyaron.com Git - emacs.git/commitdiff
(read-key-delay): Reduce to 0.01.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Oct 2009 01:29:17 +0000 (01:29 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Oct 2009 01:29:17 +0000 (01:29 +0000)
(read-key): Use read-key-sequence-vector to avoid turning M-t into 244
(bug#4751).

lisp/ChangeLog
lisp/subr.el

index 14cf0c7578a57c32051c5559620ad14c777d0c19..0475e238c89a45d9e5e98329436988e1a63901d4 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-20  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * subr.el (read-key-delay): Reduce to 0.01.
+       (read-key): Use read-key-sequence-vector to avoid turning M-t into 244
+       (bug#4751).
+
 2009-10-19  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * bindings.el (function-key-map): Map C-@ to C-SPC if C-@ is unbound.
index ad5a061584dfb4f635730c5c7af325731650ae1c..9d49075a469f7354fb658fcb4e3eca4eb9a3bbaf 100644 (file)
@@ -1802,7 +1802,7 @@ Legitimate radix values are 8, 10 and 16."
 
 (defconst read-key-empty-map (make-sparse-keymap))
 
-(defvar read-key-delay 0.1)
+(defvar read-key-delay 0.01) ;Fast enough for 100Hz repeat rate, hopefully.
 
 (defun read-key (&optional prompt)
   "Read a key from the keyboard.
@@ -1838,7 +1838,7 @@ some sort of escape sequence, the ambiguity is resolved via `read-key-delay'."
     (unwind-protect
         (progn
          (use-global-map read-key-empty-map)
-         (aref (catch 'read-key (read-key-sequence prompt nil t)) 0))
+         (aref (catch 'read-key (read-key-sequence-vector prompt nil t)) 0))
       (cancel-timer timer)
       (use-global-map old-global-map))))