Skip to content

Commit

Permalink
Revert 3b0f237 "Distinguish C-m from RET"
Browse files Browse the repository at this point in the history
Unpredictably hijacks C-m in some cases, which is unacceptable. A better
solution is needed.
  • Loading branch information
hlissner committed May 18, 2021
1 parent 1e9870e commit 6fdaaf3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/core-keybinds.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ and Emacs states, and for non-evil users.")
(not (or (numberp key) (null key))))))
[C-i] [?\C-i])))

;; HACK Fixes Emacs' disturbing inability to distinguish C-m from RET. We don't
;; need the same hacks as C-i because *nobody* binds keys to C-m otherwise.
(define-key key-translation-map [?\C-m]
(cmd! (if (let ((keys (this-single-command-raw-keys)))
(and keys
(not (cl-position 'return keys))
(not (cl-position 'kp-return keys))
(display-graphic-p)))
[C-m] [?\C-m])))


;;
;;; Universal, non-nuclear escape
Expand Down

0 comments on commit 6fdaaf3

Please sign in to comment.