diff options
| author | Richard M. Stallman | 1993-03-10 06:31:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-03-10 06:31:49 +0000 |
| commit | 3fd5d5626eaf5b8d05ecb01c9ba3cf1785a1b670 (patch) | |
| tree | 4dce34034c5d9027b66da16d9f3b98e528f760de | |
| parent | 2182d45996360014a6e17c10601132e0f6dd8411 (diff) | |
| download | emacs-3fd5d5626eaf5b8d05ecb01c9ba3cf1785a1b670.tar.gz emacs-3fd5d5626eaf5b8d05ecb01c9ba3cf1785a1b670.zip | |
(function-key-map): Map key symbols backspace, return... into ASCII chars.
Likewise their Meta versions.
Also add `ascii-character' properties.
| -rw-r--r-- | lisp/term/x-win.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 53daad9a7d9..91a50f6491c 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el | |||
| @@ -440,6 +440,23 @@ This returns ARGS with the arguments that have been processed removed." | |||
| 440 | (define-key function-key-map [clear] [11]) | 440 | (define-key function-key-map [clear] [11]) |
| 441 | (define-key function-key-map [return] [13]) | 441 | (define-key function-key-map [return] [13]) |
| 442 | (define-key function-key-map [escape] [?\e]) | 442 | (define-key function-key-map [escape] [?\e]) |
| 443 | (define-key function-key-map [M-backspace] [?\M-\d]) | ||
| 444 | (define-key function-key-map [M-delete] [?\M-\d]) | ||
| 445 | (define-key function-key-map [M-tab] [?\M-\t]) | ||
| 446 | (define-key function-key-map [M-linefeed] [?\M-\n]) | ||
| 447 | (define-key function-key-map [M-clear] [?\M-\013]) | ||
| 448 | (define-key function-key-map [M-return] [?\M-\015]) | ||
| 449 | (define-key function-key-map [M-escape] [?\M-\e]) | ||
| 450 | |||
| 451 | ;; Eventually these will tell read-char how to convert | ||
| 452 | ;; these special chars to ASCII. | ||
| 453 | (put 'backspace 'ascii-character 127) | ||
| 454 | (put 'delete 'ascii-character 127) | ||
| 455 | (put 'tab 'ascii-character ?\t) | ||
| 456 | (put 'linefeed 'ascii-character ?\n) | ||
| 457 | (put 'clear 'ascii-character 12) | ||
| 458 | (put 'return 'ascii-character 13) | ||
| 459 | (put 'escape 'ascii-character ?\e) | ||
| 443 | 460 | ||
| 444 | ;;;; Selections and cut buffers | 461 | ;;;; Selections and cut buffers |
| 445 | 462 | ||