annotate lisp/term/news.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 461c7ba8286a
children 54cc21c15cbb
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;; GNU General Public License for more details.
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;;; along with GNU Emacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; Uses the Emacs 19 terminal initialization features --- won't work with 18.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (if (boundp 'news-fkey-prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ;; The terminal initialization should already have set up some keys
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (setq news-fkey-prefix (lookup-key function-key-map "\eO"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (if (not (keymapp news-fkey-prefix))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (error "What? Your news termcap/terminfo has no keycaps in it."))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ;; Termcap or terminfo will set these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;; (define-key news-fkey-prefix "P" [f1])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;; (define-key news-fkey-prefix "Q" [f2])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ;; (define-key news-fkey-prefix "R" [f3])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ;; (define-key news-fkey-prefix "S" [f4])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ;; (define-key news-fkey-prefix "T" [f5])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ;; (define-key news-fkey-prefix "U" [f6])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ;; (define-key news-fkey-prefix "V" [f7])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ;; (define-key news-fkey-prefix "W" [f8])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ;; (define-key news-fkey-prefix "X" [f9])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ;; (define-key news-fkey-prefix "Y" [f10])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;; Terminfo will set these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (define-key news-fkey-prefix "a" [execute])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (define-key news-fkey-prefix "b" [select])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (define-key news-fkey-prefix "c" [cancel])
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
53 (define-key news-fkey-prefix "M" [kp_enter])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
54 (define-key news-fkey-prefix "q" [kp_1])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
55 (define-key news-fkey-prefix "s" [kp_3])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
56 (define-key news-fkey-prefix "u" [kp_5])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
57 (define-key news-fkey-prefix "w" [kp_7])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
58 (define-key news-fkey-prefix "y" [kp_9])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ;; These aren't in either termcap or terminfo's repertoire
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
61 (define-key news-fkey-prefix "m" [kp_subtract])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
62 (define-key news-fkey-prefix "k" [kp_add])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
63 (define-key news-fkey-prefix "l" [kp_separator])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
64 (define-key news-fkey-prefix "n" [kp_decimal])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
65 (define-key news-fkey-prefix "p" [kp_0])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
66 (define-key news-fkey-prefix "r" [kp_2])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
67 (define-key news-fkey-prefix "t" [kp_4])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
68 (define-key news-fkey-prefix "v" [kp_6])
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 52
diff changeset
69 (define-key news-fkey-prefix "x" [kp_8])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ;;; news.el ends here