annotate lisp/egg/egg-keymap.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children fe104dbd9147
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 ;; Usefull key binding for Sun Function keys
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 ;; Coded by Yutaka Ishikawa at ETL (yisikawa@etl.junet)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4 ;; This file is part of Egg on Mule (Multilingual Environment)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6 ;; Egg is free software; you can redistribute it and/or modify
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 ;; it under the terms of the GNU General Public License as published by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 ;; the Free Software Foundation; either version 2, or (at your option)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9 ;; any later version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 ;; Egg is distributed in the hope that it will be useful,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 ;; GNU General Public License for more details.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16 ;; You should have received a copy of the GNU General Public License
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17 ;; along with Mule; see the file COPYING. If not, write to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 ;;; 92.4.16 modified for Mule Ver.0.9.3 by K.Handa <handa@etl.go.jp>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23 ;; Table of Function key codes:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 ;;; x11term xterm
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 ;;; XK_F1: [f1] "\e[11~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 ;;; XK_F2: [f2] "\e[12~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29 ;;; XK_F3: [f3] "\e[13~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30 ;;; XK_F4: [f4] "\e[14~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 ;;; XK_F5: [f5] "\e[15~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 ;;; XK_F6: [f5] "\e[17~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 ;;; XK_F7: [f7] "\e[18~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 ;;; XK_F8: [f8] "\e[19~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 ;;; XK_F9: [f9] "\e[20~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37 ;;; XK_F10: [f10] "\e[21~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 ;;; XK_F11: [f11] "\e[23~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 ;;; XK_F12: [f12] "\e[24~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 ;;; XK_F13: [f13] "\e[25~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 ;;; XK_F14: [f14] "\e[26~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 ;;; XK_F15: [f15] "\e[28~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 ;;; XK_Help: [help] "\e[28~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 ;;; XK_F16: [f16] "\e[29~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 ;;; XK_Menu: ??? "\e[29~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 ;;; XK_F17: [f17] "\e[31~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 ;;; XK_F18: [f18] "\e[32~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48 ;;; XK_F19: [f19] "\e[33~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 ;;; XK_F20: [f20] "\e[34~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 ;;; XK_Find : [find] "\e[1~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 ;;; XK_Insert: [insert] "\e[2~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 ;;; XK_Delete: [delete] "\e[3~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 ;;; XK_Select: ??? "\e[4~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 ;;; XK_Prior: [prior] "\e[5~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 ;;; XK_Next: [next] "\e[6~"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 ;;; XK_Left: [left] "\eOC"(XK_R12)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 ;;; XK_Right: [right] "\eOD"(XK_R10)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 ;;; XK_Up: [up] "\eOA"(XK_R8)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 ;;; XK_Down: [down] "\eOB"(XK_R10)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 ;;; Key bindings for X11 terminals(x11term)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 (define-key global-map [f1] 'set-file-coding-system)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69 (define-key global-map [f2] 'edit-dict-item)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 (define-key global-map [f3] 'jis-code-input)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 (define-key global-map [f4] 'toroku-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 (define-key global-map [f5] 'zenkaku-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 (define-key global-map [f6] 'hankaku-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74 (define-key global-map [f7] 'katakana-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75 (define-key global-map [f8] 'hiragana-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 (define-key global-map [f9] 'henkan-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 (define-key global-map [f11] 'insert-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 (define-key global-map [f12] 'insert-file)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 (define-key global-map [f13] 'eval-region)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81 (define-key global-map [f14] 'eval-current-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 (define-key global-map [f15] 'enlarge-window)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 (define-key global-map [f16] 'shrink-window)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 (define-key global-map [f17] 'revert-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 (define-key global-map [f18] 'revert-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 (define-key global-map [f19] 'beginning-of-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 (define-key global-map [f20] 'end-of-buffer)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 ;;; Key bindings for non X11 terminal([kx]term)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 ;;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 (defvar sun-fkeymap (make-keymap))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 (fset 'sun-fprefix sun-fkeymap)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96 (define-key global-map "\e[" 'sun-fprefix)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97 (define-key sun-fkeymap "[" 'backward-paragraph) ; old "\e[" assignment
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 (define-key sun-fkeymap "11~" 'set-file-coding-system) ; F1 92.4.16 by K.Handa
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99 (define-key sun-fkeymap "12~" 'edit-dict-item) ; F2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 (define-key sun-fkeymap "13~" 'jis-code-input) ; F3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101 (define-key sun-fkeymap "14~" 'toroku-region) ; F4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102 (define-key sun-fkeymap "15~" 'zenkaku-region) ; F5
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 (define-key sun-fkeymap "17~" 'hankaku-region) ; F6
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104 (define-key sun-fkeymap "18~" 'katakana-region) ; F7
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 (define-key sun-fkeymap "19~" 'hiragana-region) ; F8
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
106 (define-key sun-fkeymap "20~" 'henkan-region) ; F9
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
107
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
108 (define-key sun-fkeymap "23~" 'insert-buffer) ; F11 or L1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
109 (define-key sun-fkeymap "24~" 'insert-file) ; F12 or L2
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
110 (define-key sun-fkeymap "25~" 'eval-region) ; F13 or L3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
111 (define-key sun-fkeymap "26~" 'eval-current-buffer) ; F14 or L4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
112 (define-key sun-fkeymap "28~" 'enlarge-window) ; F15 or Help or L5
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
113 (define-key sun-fkeymap "29~" 'shrink-window) ; F16 or Menu or L6
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
114 (define-key sun-fkeymap "31~" 'revert-buffer) ; F17 or L7
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
115 (define-key sun-fkeymap "32~" 'revert-buffer) ; F18 or L8
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
116 (define-key sun-fkeymap "33~" 'beginning-of-buffer) ; F19 or L9
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
117 (define-key sun-fkeymap "34~" 'end-of-buffer) ; F20 or L10