Commit b97a79c4 authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Fix delete key after C-x 5 2 on X. (Catched by Dan Nicolaescu.)

* lisp/term/x-win.el (x-setup-function-keys): Protect against multiple
  calls on the same terminal.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-543
parent 10a0e6fe
......@@ -1171,6 +1171,9 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
(defun x-setup-function-keys (frame)
"Set up `function-key-map' on FRAME for the X window system."
;; Don't do this twice on the same display, or it would break
;; normal-erase-is-backspace-mode.
(unless (terminal-parameter frame 'x-setup-function-keys)
;; Map certain keypad keys into ASCII characters that people usually expect.
(with-selected-frame frame
(define-key local-function-key-map [backspace] [127])
......@@ -1188,7 +1191,8 @@ XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp")
(define-key local-function-key-map [M-return] [?\M-\C-m])
(define-key local-function-key-map [M-escape] [?\M-\e])
(define-key local-function-key-map [iso-lefttab] [backtab])
(define-key local-function-key-map [S-iso-lefttab] [backtab])))
(define-key local-function-key-map [S-iso-lefttab] [backtab]))
(set-terminal-parameter frame 'x-setup-function-keys t)))
;; These tell read-char how to convert
;; these special chars to ASCII.
......
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