annotate lisp/term/news.el @ 124:9b50b4588a93 r20-1b15

Import from CVS: tag r20-1b15
author cvs
date Mon, 13 Aug 2007 09:26:39 +0200
parents 54cc21c15cbb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;; news.el --- keypad and function key bindings for the Sony NEWS keyboard
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; Author: FSF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Keywords: terminals
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Copyright (C) 1989, 1993 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
8 ;;; This file is part of XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
10 ;;; XEmacs is free software; you can redistribute it and/or modify it
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
11 ;;; under the terms of the GNU General Public License as published by
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
12 ;;; the Free Software Foundation; either version 2, or (at your
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
13 ;;; option) any later version.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
15 ;;; XEmacs is distributed in the hope that it will be useful, but
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
16 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
18 ;;; General Public License for more details.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;;; You should have received a copy of the GNU General Public License
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
21 ;;; along with XEmacs; see the file COPYING. If not, write to the
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
22 ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
23 ;;; Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (if (boundp 'news-fkey-prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;; The terminal initialization should already have set up some keys
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (setq news-fkey-prefix (lookup-key function-key-map "\eO"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (if (not (keymapp news-fkey-prefix))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (error "What? Your news termcap/terminfo has no keycaps in it."))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;; Termcap or terminfo will set these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;; (define-key news-fkey-prefix "P" [f1])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;; (define-key news-fkey-prefix "Q" [f2])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;; (define-key news-fkey-prefix "R" [f3])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;; (define-key news-fkey-prefix "S" [f4])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;; (define-key news-fkey-prefix "T" [f5])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;; (define-key news-fkey-prefix "U" [f6])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;; (define-key news-fkey-prefix "V" [f7])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;; (define-key news-fkey-prefix "W" [f8])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;; (define-key news-fkey-prefix "X" [f9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;; (define-key news-fkey-prefix "Y" [f10])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;; Terminfo will set these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (define-key news-fkey-prefix "a" [execute])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (define-key news-fkey-prefix "b" [select])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (define-key news-fkey-prefix "c" [cancel])
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
54 (define-key news-fkey-prefix "M" [kp-enter])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
55 (define-key news-fkey-prefix "q" [kp-1])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
56 (define-key news-fkey-prefix "s" [kp-3])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
57 (define-key news-fkey-prefix "u" [kp-5])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
58 (define-key news-fkey-prefix "w" [kp-7])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
59 (define-key news-fkey-prefix "y" [kp-9])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ;; These aren't in either termcap or terminfo's repertoire
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
62 (define-key news-fkey-prefix "m" [kp-subtract])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
63 (define-key news-fkey-prefix "k" [kp-add])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
64 (define-key news-fkey-prefix "l" [kp-separator])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
65 (define-key news-fkey-prefix "n" [kp-decimal])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
66 (define-key news-fkey-prefix "p" [kp-0])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
67 (define-key news-fkey-prefix "r" [kp-2])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
68 (define-key news-fkey-prefix "t" [kp-4])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
69 (define-key news-fkey-prefix "v" [kp-6])
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
70 (define-key news-fkey-prefix "x" [kp-8])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 ;;; news.el ends here