diff options
| author | Eric S. Raymond | 1993-03-11 08:41:42 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1993-03-11 08:41:42 +0000 |
| commit | 02fd5d7c70aa0110c9fcdfdfc8b65a2947fe36ef (patch) | |
| tree | e36e12f559c694cdeab9862ac2c7956b792e39e2 | |
| parent | 39342d46b273c7ea11f00e9c9121c60e7b9d9ee5 (diff) | |
| download | emacs-02fd5d7c70aa0110c9fcdfdfc8b65a2947fe36ef.tar.gz emacs-02fd5d7c70aa0110c9fcdfdfc8b65a2947fe36ef.zip | |
Added headers, changed a few cookie names.
| -rw-r--r-- | lisp/term/news.el | 88 |
1 files changed, 52 insertions, 36 deletions
diff --git a/lisp/term/news.el b/lisp/term/news.el index 57896652b02..448dfd82850 100644 --- a/lisp/term/news.el +++ b/lisp/term/news.el | |||
| @@ -1,4 +1,8 @@ | |||
| 1 | ;; keypad and function key bindings for the Sony NEWS keyboard. | 1 | ;; news.el --- keypad and function key bindings for the Sony NEWS keyboard |
| 2 | |||
| 3 | ;; Author: FSF | ||
| 4 | ;; Keywords: terminals | ||
| 5 | |||
| 2 | ;; Copyright (C) 1989 Free Software Foundation, Inc. | 6 | ;; Copyright (C) 1989 Free Software Foundation, Inc. |
| 3 | 7 | ||
| 4 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| @@ -18,38 +22,50 @@ | |||
| 18 | ;; file named COPYING. Among other things, the copyright notice | 22 | ;; file named COPYING. Among other things, the copyright notice |
| 19 | ;; and this notice must be preserved on all copies. | 23 | ;; and this notice must be preserved on all copies. |
| 20 | 24 | ||
| 21 | ;; This file places entries in function-key-map for the raw escape | 25 | ;;; Commentary: |
| 22 | ;; sequences of various keypad and function keys, binding them to | 26 | |
| 23 | ;; their symbolic forms. | 27 | ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18. |
| 24 | 28 | ||
| 25 | (define-prefix-command 'news-fkey-prefix) | 29 | ;;; Code: |
| 26 | (define-key function-key-map "\eO" 'news-fkey-prefix) | 30 | |
| 27 | 31 | (if (boundp 'news-fkey-prefix) | |
| 28 | (define-key news-fkey-prefix "P" [f1]) | 32 | nil |
| 29 | (define-key news-fkey-prefix "Q" [f2]) | 33 | (setq news-fkey-prefix (make-keymap)) ; "<ESC>O" commands |
| 30 | (define-key news-fkey-prefix "R" [f3]) | 34 | (define-key function-key-map "\eO" news-fkey-prefix) |
| 31 | (define-key news-fkey-prefix "S" [f4]) | 35 | |
| 32 | (define-key news-fkey-prefix "T" [f5]) | 36 | ;; Termcap or terminfo will set these |
| 33 | (define-key news-fkey-prefix "U" [f6]) | 37 | ;; (define-key news-fkey-prefix "P" [f1]) |
| 34 | (define-key news-fkey-prefix "V" [f7]) | 38 | ;; (define-key news-fkey-prefix "Q" [f2]) |
| 35 | (define-key news-fkey-prefix "W" [f8]) | 39 | ;; (define-key news-fkey-prefix "R" [f3]) |
| 36 | (define-key news-fkey-prefix "X" [f9]) | 40 | ;; (define-key news-fkey-prefix "S" [f4]) |
| 37 | (define-key news-fkey-prefix "Y" [f10]) | 41 | ;; (define-key news-fkey-prefix "T" [f5]) |
| 38 | (define-key news-fkey-prefix "m" [kp-subtract]) | 42 | ;; (define-key news-fkey-prefix "U" [f6]) |
| 39 | (define-key news-fkey-prefix "k" [kp-add]) | 43 | ;; (define-key news-fkey-prefix "V" [f7]) |
| 40 | (define-key news-fkey-prefix "l" [kp-separator]) | 44 | ;; (define-key news-fkey-prefix "W" [f8]) |
| 41 | (define-key news-fkey-prefix "n" [kp-period]) | 45 | ;; (define-key news-fkey-prefix "X" [f9]) |
| 42 | (define-key news-fkey-prefix "M" [kp-enter]) | 46 | ;; (define-key news-fkey-prefix "Y" [f10]) |
| 43 | (define-key news-fkey-prefix "p" [kp-0]) | 47 | |
| 44 | (define-key news-fkey-prefix "q" [kp-1]) | 48 | ;; Terminfo will set these |
| 45 | (define-key news-fkey-prefix "r" [kp-2]) | 49 | (define-key news-fkey-prefix "a" [execute]) |
| 46 | (define-key news-fkey-prefix "s" [kp-3]) | 50 | (define-key news-fkey-prefix "b" [select]) |
| 47 | (define-key news-fkey-prefix "t" [kp-4]) | 51 | (define-key news-fkey-prefix "c" [cancel]) |
| 48 | (define-key news-fkey-prefix "u" [kp-5]) | 52 | (define-key news-fkey-prefix "M" [kp-enter]) |
| 49 | (define-key news-fkey-prefix "v" [kp-6]) | 53 | (define-key news-fkey-prefix "q" [kp-1]) |
| 50 | (define-key news-fkey-prefix "w" [kp-7]) | 54 | (define-key news-fkey-prefix "s" [kp-3]) |
| 51 | (define-key news-fkey-prefix "x" [kp-8]) | 55 | (define-key news-fkey-prefix "u" [kp-5]) |
| 52 | (define-key news-fkey-prefix "y" [kp-9]) | 56 | (define-key news-fkey-prefix "w" [kp-7]) |
| 53 | (define-key news-fkey-prefix "a" [execute]) | 57 | (define-key news-fkey-prefix "y" [kp-9]) |
| 54 | (define-key news-fkey-prefix "b" [select]) | 58 | |
| 55 | (define-key news-fkey-prefix "c" [cancel]) | 59 | ;; These aren't in either termcap or terminfo's repertoire |
| 60 | (define-key news-fkey-prefix "m" [kp-subtract]) | ||
| 61 | (define-key news-fkey-prefix "k" [kp-add]) | ||
| 62 | (define-key news-fkey-prefix "l" [kp-separator]) | ||
| 63 | (define-key news-fkey-prefix "n" [kp-period]) | ||
| 64 | (define-key news-fkey-prefix "p" [kp-0]) | ||
| 65 | (define-key news-fkey-prefix "r" [kp-2]) | ||
| 66 | (define-key news-fkey-prefix "t" [kp-4]) | ||
| 67 | (define-key news-fkey-prefix "v" [kp-6]) | ||
| 68 | (define-key news-fkey-prefix "x" [kp-8]) | ||
| 69 | ) | ||
| 70 | |||
| 71 | ;;; news.el ends here | ||