Mercurial > emacs
changeset 2096:d8ba7550a0cc
(function-key-map): Map key symbols backspace, return... into ASCII chars.
Likewise their Meta versions.
Also add `ascii-character' properties.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 10 Mar 1993 06:31:49 +0000 |
parents | 139f87bcbaf1 |
children | dd4410e55081 |
files | lisp/term/x-win.el |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/term/x-win.el Wed Mar 10 05:34:06 1993 +0000 +++ b/lisp/term/x-win.el Wed Mar 10 06:31:49 1993 +0000 @@ -440,6 +440,23 @@ (define-key function-key-map [clear] [11]) (define-key function-key-map [return] [13]) (define-key function-key-map [escape] [?\e]) +(define-key function-key-map [M-backspace] [?\M-\d]) +(define-key function-key-map [M-delete] [?\M-\d]) +(define-key function-key-map [M-tab] [?\M-\t]) +(define-key function-key-map [M-linefeed] [?\M-\n]) +(define-key function-key-map [M-clear] [?\M-\013]) +(define-key function-key-map [M-return] [?\M-\015]) +(define-key function-key-map [M-escape] [?\M-\e]) + +;; Eventually these will tell read-char how to convert +;; these special chars to ASCII. +(put 'backspace 'ascii-character 127) +(put 'delete 'ascii-character 127) +(put 'tab 'ascii-character ?\t) +(put 'linefeed 'ascii-character ?\n) +(put 'clear 'ascii-character 12) +(put 'return 'ascii-character 13) +(put 'escape 'ascii-character ?\e) ;;;; Selections and cut buffers