Commit 79bd5ba1 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(read-key-delay): Reduce to 0.01.

(read-key): Use read-key-sequence-vector to avoid turning M-t into 244
(bug#4751).
parent 9bfd9a76
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.
......
......@@ -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))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment