aboutsummaryrefslogtreecommitdiff
path: root/evil-integration.el
diff options
context:
space:
mode:
authorFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2013-02-27 09:43:07 +0100
committerFrank Fischer <frank.fischer@mathematik.tu-chemnitz.de>2013-02-27 09:43:07 +0100
commitd6937eb7b12ba5158366e1bbe963e8b898f5a49d (patch)
tree8ffef8ad213bdfc246302c89faaa4ef6fcb5ef74 /evil-integration.el
parent40bf76f34821d38cf0e0ae4b85602b0d41ad4d62 (diff)
Handle ESC -> escape translation in `input-decode-map` (fix #264)
The old ESC -> escape translation code relied on a certain handling of the keymap code in Emacs' core. This handling has changed in Emacs 24.3 and cause bug #264 and the related Emacs bugs 13709, 13793. The new code handles this transition not in a high-precedence minor mode map but directly in `input-decode-map`. An incoming ESC event is translated to either 'escape or to the default ESC prefix map originally bound to ESC in `input-decode-map`.
Diffstat (limited to 'evil-integration.el')
-rw-r--r--evil-integration.el17
1 files changed, 0 insertions, 17 deletions
diff --git a/evil-integration.el b/evil-integration.el
index 9dea69e..73a0879 100644
--- a/evil-integration.el
+++ b/evil-integration.el
@@ -74,23 +74,6 @@
;;; key-binding
-;; disable evil-esc-mode during a call to key-binding
-(defadvice key-binding (around evil activate)
- (let (evil-esc-mode)
- ad-do-it))
-
-;; disable evil-esc-mode during the read of a key-sequence
-;; TODO: should we handle the special ESC-delay, too?
-(defadvice read-key-sequence (around evil activate)
- (let (evil-esc-mode)
- ad-do-it))
-
-;; disable evil-esc-mode during the read of a key-sequence
-;; TODO: should we handle the special ESC-delay, too?
-(defadvice read-key-sequence-vector (around evil activate)
- (let (evil-esc-mode)
- ad-do-it))
-
;; Calling `keyboard-quit' should cancel repeat
(defadvice keyboard-quit (before evil activate)
(when (fboundp 'evil-repeat-abort)