[PATCH] Special handling of r<escape> (do nothing) was lost in translation.

Wolfgang Jenkner wjenkner at inode.at
Mon Sep 26 19:03:27 CEST 2011


Not sure about the existing uses of evil-read-key in evil-insert-digraph.
---
 evil-compatibility.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/evil-compatibility.el b/evil-compatibility.el
index 7d7740f..5cd6df4 100644
--- a/evil-compatibility.el
+++ b/evil-compatibility.el
@@ -36,8 +36,9 @@ Translates it according to the input method."
           (setq char (aref (read-key-sequence prompt nil t) 0))
           (if (memq char '(?\C-q ?\C-v))
 	      (read-quoted-char)
-	    (or (cdr (assq char '((?\r . ?\n))))
-		char)))
+	    (unless (eq char ?\e)
+	      (or (cdr (assq char '((?\r . ?\n))))
+		  char))))
       (use-global-map old-global-map))))
=20
 ;; `make-char-table' requires this property in Emacs 22
--=20
1.7.6.1




More information about the implementations-list mailing list