54
|
1 ;; Parse switches controlling how Emacs interfaces with X window system.
|
|
2 ;; Copyright (C) 1990 Free Software Foundation, Inc.
|
|
3
|
|
4 ;; This file is part of GNU Emacs.
|
|
5
|
|
6 ;; GNU Emacs is distributed in the hope that it will be useful,
|
|
7 ;; but WITHOUT ANY WARRANTY. No author or distributor
|
|
8 ;; accepts responsibility to anyone for the consequences of using it
|
|
9 ;; or for whether it serves any particular purpose or works at all,
|
|
10 ;; unless he says so in writing. Refer to the GNU Emacs General Public
|
|
11 ;; License for full details.
|
|
12
|
|
13 ;; Everyone is granted permission to copy, modify and redistribute
|
|
14 ;; GNU Emacs, but only under the conditions described in the
|
|
15 ;; GNU Emacs General Public License. A copy of this license is
|
|
16 ;; supposed to have been given to you along with GNU Emacs so you
|
|
17 ;; can know your rights and responsibilities. It should be in a
|
|
18 ;; file named COPYING. Among other things, the copyright notice
|
|
19 ;; and this notice must be preserved on all copies.
|
|
20
|
|
21
|
|
22 ;; X-win.el: this file is loaded from ../lisp/startup.el when it recognizes
|
|
23 ;; that X windows are to be used. Command line switches are parsed and those
|
|
24 ;; pertaining to X are processed and removed from the command line. The
|
|
25 ;; X display is opened and hooks are set for popping up the initial window.
|
|
26
|
|
27 ;; startup.el will then examine startup files, and eventually call the hooks
|
|
28 ;; which create the first window (s).
|
|
29
|
|
30 ;; These are the standard X switches from the Xt Initialize.c file of
|
|
31 ;; Release 4.
|
|
32
|
|
33 ;; Command line Resource Manager string
|
|
34
|
|
35 ;; +rv *reverseVideo
|
|
36 ;; +synchronous *synchronous
|
|
37 ;; -background *background
|
|
38 ;; -bd *borderColor
|
|
39 ;; -bg *background
|
|
40 ;; -bordercolor *borderColor
|
|
41 ;; -borderwidth .borderWidth
|
|
42 ;; -bw .borderWidth
|
|
43 ;; -display .display
|
|
44 ;; -fg *foreground
|
|
45 ;; -fn *font
|
|
46 ;; -font *font
|
|
47 ;; -foreground *foreground
|
|
48 ;; -geometry .geometry
|
|
49 ;; -iconic .iconic
|
|
50 ;; -name .name
|
|
51 ;; -reverse *reverseVideo
|
|
52 ;; -rv *reverseVideo
|
|
53 ;; -selectionTimeout .selectionTimeout
|
|
54 ;; -synchronous *synchronous
|
|
55 ;; -title .title
|
|
56 ;; -xrm
|
|
57
|
|
58 ;; An alist of X options and the function which handles them. See
|
|
59 ;; ../startup.el.
|
|
60
|
|
61 (setq command-switch-alist
|
|
62 (append '(("-dm" . x-establish-daemon-mode)
|
|
63 ("-bw" . x-handle-numeric-switch)
|
|
64 ("-d" . x-handle-display)
|
|
65 ("-display" . x-handle-display)
|
|
66 ("-name" . x-handle-switch)
|
|
67 ("-T" . x-handle-switch)
|
|
68 ("-r" . x-handle-switch)
|
|
69 ("-rv" . x-handle-switch)
|
|
70 ("-reverse" . x-handle-switch)
|
|
71 ("-fn" . x-handle-switch)
|
|
72 ("-font" . x-handle-switch)
|
|
73 ("-ib" . x-handle-switch)
|
|
74 ("-g" . x-handle-geometry)
|
|
75 ("-geometry" . x-handle-geometry)
|
|
76 ("-fg" . x-handle-switch)
|
|
77 ("-foreground" . x-handle-switch)
|
|
78 ("-bg" . x-handle-switch)
|
|
79 ("-background" . x-handle-switch)
|
|
80 ("-ms" . x-handle-switch)
|
|
81 ("-ib" . x-handle-switch)
|
|
82 ("-iconic" . x-handle-switch)
|
|
83 ("-cr" . x-handle-switch)
|
|
84 ("-vb" . x-handle-switch)
|
|
85 ("-hb" . x-handle-switch)
|
|
86 ("-bd" . x-handle-switch))
|
|
87 command-switch-alist))
|
|
88
|
|
89 (defvar x-switches-specified nil)
|
|
90
|
|
91 (defconst x-switch-definitions
|
|
92 '(("-name" name)
|
|
93 ("-T" name)
|
|
94 ("-r" lose)
|
|
95 ("-rv" lose)
|
|
96 ("-reverse" lose)
|
|
97 ("-fn" font)
|
|
98 ("-font" font)
|
|
99 ("-ib" internal-border-width)
|
|
100 ("-fg" foreground-color)
|
|
101 ("-foreground" foreground-color)
|
|
102 ("-bg" background-color)
|
|
103 ("-background" background-color)
|
|
104 ("-ms" mouse-color)
|
|
105 ("-cr" cursor-color)
|
|
106 ("-ib" icon-type t)
|
|
107 ("-iconic" iconic-startup t)
|
|
108 ("-vb" vertical-scroll-bar t)
|
|
109 ("-hb" horizontal-scroll-bar t)
|
|
110 ("-bd" border-color)
|
|
111 ("-bw" border-width)))
|
|
112
|
|
113 ;; Handler for switches of the form "-switch value" or "-switch".
|
|
114 (defun x-handle-switch (switch)
|
|
115 (let ((aelt (assoc switch x-switch-definitions)))
|
|
116 (if aelt
|
|
117 (if (nth 2 aelt)
|
|
118 (setq x-switches-specified
|
|
119 (cons (cons (nth 1 aelt) (nth 2 aelt))
|
|
120 x-switches-specified))
|
|
121 (setq x-switches-specified
|
|
122 (cons (cons (nth 1 aelt)
|
|
123 (car x-invocation-args))
|
|
124 x-switches-specified)
|
|
125 x-invocation-args (cdr x-invocation-args))))))
|
|
126
|
|
127 ;; Handler for switches of the form "-switch n"
|
|
128 (defun x-handle-numeric-switch (switch)
|
|
129 (let ((aelt (assoc switch x-switch-definitions)))
|
|
130 (if aelt
|
|
131 (setq x-switches-specified
|
|
132 (cons (cons (nth 1 aelt)
|
|
133 (string-to-int (car x-invocation-args)))
|
|
134 x-switches-specified)
|
|
135 x-invocation-args
|
|
136 (cdr x-invocation-args)))))
|
|
137
|
|
138 ;; Handle the geometry option
|
|
139 (defun x-handle-geometry (switch)
|
|
140 (setq x-switches-specified (append x-switches-specified
|
|
141 (x-geometry (car x-invocation-args)))
|
|
142 x-invocation-args (cdr x-invocation-args)))
|
|
143
|
|
144 ;; The daemon stuff isn't really useful at the moment.
|
|
145 (defvar x-daemon-mode nil
|
|
146 "When set, means initially create just a minibuffer.")
|
|
147
|
|
148 (defun x-establish-daemon-mode (switch)
|
|
149 (setq x-daemon-mode t))
|
|
150
|
|
151 (defvar x-display-name nil
|
|
152 "The X display name specifying server and X screen.")
|
|
153
|
|
154 (defun x-handle-display (switch)
|
|
155 (setq x-display-name (car x-invocation-args)
|
|
156 x-invocation-args (cdr x-invocation-args)))
|
|
157
|
|
158 ;; Here the X-related command line options are processed, before the user's
|
|
159 ;; startup file is loaded. These are present in ARGS (see startup.el).
|
|
160 ;; They are copied to x-invocation args from which the X-related things
|
|
161 ;; are extracted, first the switch (e.g., "-fg") in the following code,
|
|
162 ;; and possible values (e.g., "black") in the option handler code
|
|
163 ;; (e.g., x-handle-switch).
|
|
164
|
|
165 ;; When finished, only things not pertaining to X (e.g., "-q", filenames)
|
|
166 ;; are left in ARGS
|
|
167
|
|
168 (defvar x-invocation-args nil)
|
|
169
|
|
170 (if (eq window-system 'x)
|
|
171 (progn
|
|
172 (setq window-setup-hook 'x-pop-initial-window
|
|
173 x-invocation-args args
|
|
174 args nil)
|
|
175 (require 'x-mouse)
|
|
176 (require 'screen)
|
|
177 (setq suspend-hook
|
|
178 '(lambda ()
|
|
179 (error "Suspending an emacs running under X makes no sense")))
|
|
180 (define-key global-map "" 'iconify-emacs)
|
|
181 (while x-invocation-args
|
|
182 (let* ((this-switch (car x-invocation-args))
|
|
183 (aelt (assoc this-switch command-switch-alist)))
|
|
184 (setq x-invocation-args (cdr x-invocation-args))
|
|
185 (if aelt
|
|
186 (funcall (cdr aelt) this-switch)
|
|
187 (setq args (cons this-switch args)))))
|
|
188 (setq args (nreverse args))
|
|
189 (x-open-connection (or x-display-name
|
|
190 (setq x-display-name (getenv "DISPLAY"))))
|
|
191 ;;
|
|
192 ;; This is the place to handle Xresources
|
|
193 ;;
|
|
194 )
|
|
195 (error "Loading x-win.el but not compiled for X"))
|
|
196
|
|
197
|
|
198 ;; This is the function which creates the first X window. It is called
|
|
199 ;; from startup.el after the user's init file is processed.
|
|
200
|
|
201 (defun x-pop-initial-window ()
|
|
202 ;; xterm.c depends on using interrupt-driven input.
|
|
203 (set-input-mode t nil t)
|
79
|
204 (setq mouse-motion-handler 'x-track-pointer)
|
54
|
205 (setq x-switches-specified (append x-switches-specified
|
|
206 initial-screen-alist
|
|
207 screen-default-alist))
|
62
|
208 (and (string-equal (user-real-login-name) "mtr")
|
|
209 (setq x-switches-specified
|
|
210 (append (list '(name . "Die, Yuppie SCUM!!!"))
|
|
211 x-switches-specified)))
|
54
|
212 ;; see screen.el for this function
|
|
213 (pop-initial-screen x-switches-specified)
|
|
214 (delete-screen terminal-screen))
|
|
215
|
|
216
|
|
217 ;;
|
|
218 ;; Standard X cursor shapes, courtesy of Mr. Fox, who wanted ALL of them.
|
|
219 ;;
|
|
220
|
|
221 (defconst x-pointer-X-cursor 0)
|
|
222 (defconst x-pointer-arrow 2)
|
|
223 (defconst x-pointer-based-arrow-down 4)
|
|
224 (defconst x-pointer-based-arrow-up 6)
|
|
225 (defconst x-pointer-boat 8)
|
|
226 (defconst x-pointer-bogosity 10)
|
|
227 (defconst x-pointer-bottom-left-corner 12)
|
|
228 (defconst x-pointer-bottom-right-corner 14)
|
|
229 (defconst x-pointer-bottom-side 16)
|
|
230 (defconst x-pointer-bottom-tee 18)
|
|
231 (defconst x-pointer-box-spiral 20)
|
|
232 (defconst x-pointer-center-ptr 22)
|
|
233 (defconst x-pointer-circle 24)
|
|
234 (defconst x-pointer-clock 26)
|
|
235 (defconst x-pointer-coffee-mug 28)
|
|
236 (defconst x-pointer-cross 30)
|
|
237 (defconst x-pointer-cross-reverse 32)
|
|
238 (defconst x-pointer-crosshair 34)
|
|
239 (defconst x-pointer-diamond-cross 36)
|
|
240 (defconst x-pointer-dot 38)
|
|
241 (defconst x-pointer-dotbox 40)
|
|
242 (defconst x-pointer-double-arrow 42)
|
|
243 (defconst x-pointer-draft-large 44)
|
|
244 (defconst x-pointer-draft-small 46)
|
|
245 (defconst x-pointer-draped-box 48)
|
|
246 (defconst x-pointer-exchange 50)
|
|
247 (defconst x-pointer-fleur 52)
|
|
248 (defconst x-pointer-gobbler 54)
|
|
249 (defconst x-pointer-gumby 56)
|
|
250 (defconst x-pointer-hand1 58)
|
|
251 (defconst x-pointer-hand2 60)
|
|
252 (defconst x-pointer-heart 62)
|
|
253 (defconst x-pointer-icon 64)
|
|
254 (defconst x-pointer-iron-cross 66)
|
|
255 (defconst x-pointer-left-ptr 68)
|
|
256 (defconst x-pointer-left-side 70)
|
|
257 (defconst x-pointer-left-tee 72)
|
|
258 (defconst x-pointer-leftbutton 74)
|
|
259 (defconst x-pointer-ll-angle 76)
|
|
260 (defconst x-pointer-lr-angle 78)
|
|
261 (defconst x-pointer-man 80)
|
|
262 (defconst x-pointer-middlebutton 82)
|
|
263 (defconst x-pointer-mouse 84)
|
|
264 (defconst x-pointer-pencil 86)
|
|
265 (defconst x-pointer-pirate 88)
|
|
266 (defconst x-pointer-plus 90)
|
|
267 (defconst x-pointer-question-arrow 92)
|
|
268 (defconst x-pointer-right-ptr 94)
|
|
269 (defconst x-pointer-right-side 96)
|
|
270 (defconst x-pointer-right-tee 98)
|
|
271 (defconst x-pointer-rightbutton 100)
|
|
272 (defconst x-pointer-rtl-logo 102)
|
|
273 (defconst x-pointer-sailboat 104)
|
|
274 (defconst x-pointer-sb-down-arrow 106)
|
|
275 (defconst x-pointer-sb-h-double-arrow 108)
|
|
276 (defconst x-pointer-sb-left-arrow 110)
|
|
277 (defconst x-pointer-sb-right-arrow 112)
|
|
278 (defconst x-pointer-sb-up-arrow 114)
|
|
279 (defconst x-pointer-sb-v-double-arrow 116)
|
|
280 (defconst x-pointer-shuttle 118)
|
|
281 (defconst x-pointer-sizing 120)
|
|
282 (defconst x-pointer-spider 122)
|
|
283 (defconst x-pointer-spraycan 124)
|
|
284 (defconst x-pointer-star 126)
|
|
285 (defconst x-pointer-target 128)
|
|
286 (defconst x-pointer-tcross 130)
|
|
287 (defconst x-pointer-top-left-arrow 132)
|
|
288 (defconst x-pointer-top-left-corner 134)
|
|
289 (defconst x-pointer-top-right-corner 136)
|
|
290 (defconst x-pointer-top-side 138)
|
|
291 (defconst x-pointer-top-tee 140)
|
|
292 (defconst x-pointer-trek 142)
|
|
293 (defconst x-pointer-ul-angle 144)
|
|
294 (defconst x-pointer-umbrella 146)
|
|
295 (defconst x-pointer-ur-angle 148)
|
|
296 (defconst x-pointer-watch 150)
|
|
297 (defconst x-pointer-xterm 152)
|
|
298
|
|
299 ;;
|
|
300 ;; Available colors
|
|
301 ;;
|
|
302
|
|
303 (defvar x-colors '("aquamarine"
|
|
304 "Aquamarine"
|
|
305 "medium aquamarine"
|
|
306 "MediumAquamarine"
|
|
307 "black"
|
|
308 "Black"
|
|
309 "blue"
|
|
310 "Blue"
|
|
311 "cadet blue"
|
|
312 "CadetBlue"
|
|
313 "cornflower blue"
|
|
314 "CornflowerBlue"
|
|
315 "dark slate blue"
|
|
316 "DarkSlateBlue"
|
|
317 "light blue"
|
|
318 "LightBlue"
|
|
319 "light steel blue"
|
|
320 "LightSteelBlue"
|
|
321 "medium blue"
|
|
322 "MediumBlue"
|
|
323 "medium slate blue"
|
|
324 "MediumSlateBlue"
|
|
325 "midnight blue"
|
|
326 "MidnightBlue"
|
|
327 "navy blue"
|
|
328 "NavyBlue"
|
|
329 "navy"
|
|
330 "Navy"
|
|
331 "sky blue"
|
|
332 "SkyBlue"
|
|
333 "slate blue"
|
|
334 "SlateBlue"
|
|
335 "steel blue"
|
|
336 "SteelBlue"
|
|
337 "coral"
|
|
338 "Coral"
|
|
339 "cyan"
|
|
340 "Cyan"
|
|
341 "firebrick"
|
|
342 "Firebrick"
|
|
343 "brown"
|
|
344 "Brown"
|
|
345 "gold"
|
|
346 "Gold"
|
|
347 "goldenrod"
|
|
348 "Goldenrod"
|
|
349 "medium goldenrod"
|
|
350 "MediumGoldenrod"
|
|
351 "green"
|
|
352 "Green"
|
|
353 "dark green"
|
|
354 "DarkGreen"
|
|
355 "dark olive green"
|
|
356 "DarkOliveGreen"
|
|
357 "forest green"
|
|
358 "ForestGreen"
|
|
359 "lime green"
|
|
360 "LimeGreen"
|
|
361 "medium forest green"
|
|
362 "MediumForestGreen"
|
|
363 "medium sea green"
|
|
364 "MediumSeaGreen"
|
|
365 "medium spring green"
|
|
366 "MediumSpringGreen"
|
|
367 "pale green"
|
|
368 "PaleGreen"
|
|
369 "sea green"
|
|
370 "SeaGreen"
|
|
371 "spring green"
|
|
372 "SpringGreen"
|
|
373 "yellow green"
|
|
374 "YellowGreen"
|
|
375 "dark slate grey"
|
|
376 "DarkSlateGrey"
|
|
377 "dark slate gray"
|
|
378 "DarkSlateGray"
|
|
379 "dim grey"
|
|
380 "DimGrey"
|
|
381 "dim gray"
|
|
382 "DimGray"
|
|
383 "light grey"
|
|
384 "LightGrey"
|
|
385 "light gray"
|
|
386 "LightGray"
|
|
387 "gray"
|
|
388 "grey"
|
|
389 "Gray"
|
|
390 "Grey"
|
|
391 "khaki"
|
|
392 "Khaki"
|
|
393 "magenta"
|
|
394 "Magenta"
|
|
395 "maroon"
|
|
396 "Maroon"
|
|
397 "orange"
|
|
398 "Orange"
|
|
399 "orchid"
|
|
400 "Orchid"
|
|
401 "dark orchid"
|
|
402 "DarkOrchid"
|
|
403 "medium orchid"
|
|
404 "MediumOrchid"
|
|
405 "pink"
|
|
406 "Pink"
|
|
407 "plum"
|
|
408 "Plum"
|
|
409 "red"
|
|
410 "Red"
|
|
411 "indian red"
|
|
412 "IndianRed"
|
|
413 "medium violet red"
|
|
414 "MediumVioletRed"
|
|
415 "orange red"
|
|
416 "OrangeRed"
|
|
417 "violet red"
|
|
418 "VioletRed"
|
|
419 "salmon"
|
|
420 "Salmon"
|
|
421 "sienna"
|
|
422 "Sienna"
|
|
423 "tan"
|
|
424 "Tan"
|
|
425 "thistle"
|
|
426 "Thistle"
|
|
427 "turquoise"
|
|
428 "Turquoise"
|
|
429 "dark turquoise"
|
|
430 "DarkTurquoise"
|
|
431 "medium turquoise"
|
|
432 "MediumTurquoise"
|
|
433 "violet"
|
|
434 "Violet"
|
|
435 "blue violet"
|
|
436 "BlueViolet"
|
|
437 "wheat"
|
|
438 "Wheat"
|
|
439 "white"
|
|
440 "White"
|
|
441 "yellow"
|
|
442 "Yellow"
|
|
443 "green yellow"
|
|
444 "GreenYellow")
|
|
445 "The full list of X colors from the rgb.text file.")
|
|
446
|
|
447 (defun x-defined-colors ()
|
|
448 "Return a list of colors supported by the current X-Display."
|
|
449 (let ((all-colors x-colors)
|
|
450 (this-color nil)
|
|
451 (defined-colors nil))
|
|
452 (while all-colors
|
|
453 (setq this-color (car all-colors)
|
|
454 all-colors (cdr all-colors))
|
|
455 (and (x-defined-color this-color)
|
|
456 (setq defined-colors (cons this-color defined-colors))))
|
|
457 defined-colors))
|
|
458
|
|
459
|
|
460 ;;
|
|
461 ;; Function key processing under X. Function keys are received through
|
|
462 ;; in the input stream as Lisp symbols.
|
|
463 ;;
|
|
464
|
|
465 (defun define-function-key (map sym definition)
|
|
466 (let ((exist (assq sym (cdr map))))
|
|
467 (if exist
|
|
468 (setcdr exist definition)
|
|
469 (setcdr map
|
|
470 (cons (cons sym definition)
|
|
471 (cdr map))))))
|
|
472
|
|
473 ;; For unused keysyms. If this happens, it's probably a server or
|
|
474 ;; Xlib bug.
|
|
475
|
|
476 (defun weird-x-keysym ()
|
|
477 (interactive)
|
|
478 (error "Bizarre X keysym received."))
|
|
479 (define-function-key global-function-map 'xk-not-serious 'weird-x-keysym)
|
|
480
|
|
481 ;; Keypad type things
|
|
482
|
|
483 (define-function-key global-function-map 'xk-home 'beginning-of-line)
|
|
484 (define-function-key global-function-map 'xk-left 'backward-char)
|
|
485 (define-function-key global-function-map 'xk-up 'previous-line)
|
|
486 (define-function-key global-function-map 'xk-right 'forward-char)
|
|
487 (define-function-key global-function-map 'xk-down 'next-line)
|
|
488 (define-function-key global-function-map 'xk-prior 'previous-line)
|
|
489 (define-function-key global-function-map 'xk-next 'next-line)
|
|
490 (define-function-key global-function-map 'xk-end 'end-of-line)
|
|
491 (define-function-key global-function-map 'xk-begin 'beginning-of-line)
|
|
492
|
|
493 ;; IsMiscFunctionKey
|
|
494
|
|
495 (define-function-key global-function-map 'xk-select nil)
|
|
496 (define-function-key global-function-map 'xk-print nil)
|
|
497 (define-function-key global-function-map 'xk-execute nil)
|
|
498 (define-function-key global-function-map 'xk-insert nil)
|
|
499 (define-function-key global-function-map 'xk-undo nil)
|
|
500 (define-function-key global-function-map 'xk-redo nil)
|
|
501 (define-function-key global-function-map 'xk-menu nil)
|
|
502 (define-function-key global-function-map 'xk-find nil)
|
|
503 (define-function-key global-function-map 'xk-cancel nil)
|
|
504 (define-function-key global-function-map 'xk-help nil)
|
|
505 (define-function-key global-function-map 'xk-break nil)
|
|
506
|
|
507 ;; IsKeypadKey
|
|
508
|
|
509 (define-function-key global-function-map 'xk-kp-space
|
|
510 '(lambda nil (interactive)
|
|
511 (insert " ")))
|
|
512 (define-function-key global-function-map 'xk-kp-tab
|
|
513 '(lambda nil (interactive)
|
|
514 (insert "\t")))
|
|
515 (define-function-key global-function-map 'xk-kp-enter
|
|
516 '(lambda nil (interactive)
|
|
517 (insert "\n")))
|
|
518
|
|
519 (define-function-key global-function-map 'xk-kp-f1 'rmail)
|
|
520 (define-function-key global-function-map 'xk-kp-f2 nil)
|
|
521 (define-function-key global-function-map 'xk-kp-f3 nil)
|
|
522 (define-function-key global-function-map 'xk-kp-f4 nil)
|
|
523
|
|
524 (define-function-key global-function-map 'xk-kp-equal
|
|
525 '(lambda nil (interactive)
|
|
526 (insert "=")))
|
|
527 (define-function-key global-function-map 'xk-kp-multiply
|
|
528 '(lambda nil (interactive)
|
|
529 (insert "*")))
|
|
530 (define-function-key global-function-map 'xk-kp-add
|
|
531 '(lambda nil (interactive)
|
|
532 (insert "+")))
|
|
533 (define-function-key global-function-map 'xk-kp-separator
|
|
534 '(lambda nil (interactive)
|
|
535 (insert ";")))
|
|
536 (define-function-key global-function-map 'xk-kp-subtract
|
|
537 '(lambda nil (interactive)
|
|
538 (insert "-")))
|
|
539 (define-function-key global-function-map 'xk-kp-decimal
|
|
540 '(lambda nil (interactive)
|
|
541 (insert ".")))
|
|
542 (define-function-key global-function-map 'xk-kp-divide
|
|
543 '(lambda nil (interactive)
|
|
544 (insert "/")))
|
|
545
|
|
546 (define-function-key global-function-map 'xk-kp-0
|
|
547 '(lambda nil (interactive)
|
|
548 (insert "0")))
|
|
549 (define-function-key global-function-map 'xk-kp-1
|
|
550 '(lambda nil (interactive)
|
|
551 (insert "1")))
|
|
552 (define-function-key global-function-map 'xk-kp-2
|
|
553 '(lambda nil (interactive)
|
|
554 (insert "2")))
|
|
555 (define-function-key global-function-map 'xk-kp-3
|
|
556 '(lambda nil (interactive)
|
|
557 (insert "3")))
|
|
558 (define-function-key global-function-map 'xk-kp-4
|
|
559 '(lambda nil (interactive)
|
|
560 (insert "4")))
|
|
561 (define-function-key global-function-map 'xk-kp-5
|
|
562 '(lambda nil (interactive)
|
|
563 (insert "5")))
|
|
564 (define-function-key global-function-map 'xk-kp-6
|
|
565 '(lambda nil (interactive)
|
|
566 (insert "6")))
|
|
567 (define-function-key global-function-map 'xk-kp-7
|
|
568 '(lambda nil (interactive)
|
|
569 (insert "7")))
|
|
570 (define-function-key global-function-map 'xk-kp-8
|
|
571 '(lambda nil (interactive)
|
|
572 (insert "8")))
|
|
573 (define-function-key global-function-map 'xk-kp-9
|
|
574 '(lambda nil (interactive)
|
|
575 (insert "9")))
|
|
576
|
|
577 ;; IsFunctionKey
|
|
578
|
|
579 (define-function-key global-function-map 'xk-f1 'rmail)
|
|
580 (define-function-key global-function-map 'xk-f2 nil)
|
|
581 (define-function-key global-function-map 'xk-f3 nil)
|
|
582 (define-function-key global-function-map 'xk-f4 nil)
|
|
583 (define-function-key global-function-map 'xk-f5 nil)
|
|
584 (define-function-key global-function-map 'xk-f6 nil)
|
|
585 (define-function-key global-function-map 'xk-f7 nil)
|
|
586 (define-function-key global-function-map 'xk-f8 nil)
|
|
587 (define-function-key global-function-map 'xk-f9 nil)
|
|
588 (define-function-key global-function-map 'xk-f10 nil)
|
|
589 (define-function-key global-function-map 'xk-f11 nil)
|
|
590 (define-function-key global-function-map 'xk-f12 nil)
|
|
591 (define-function-key global-function-map 'xk-f13 nil)
|
|
592 (define-function-key global-function-map 'xk-f14 nil)
|
|
593 (define-function-key global-function-map 'xk-f15 nil)
|
|
594 (define-function-key global-function-map 'xk-f16 nil)
|
|
595 (define-function-key global-function-map 'xk-f17 nil)
|
|
596 (define-function-key global-function-map 'xk-f18 nil)
|
|
597 (define-function-key global-function-map 'xk-f19 nil)
|
|
598 (define-function-key global-function-map 'xk-f20 nil)
|
|
599 (define-function-key global-function-map 'xk-f21 nil)
|
|
600 (define-function-key global-function-map 'xk-f22 nil)
|
|
601 (define-function-key global-function-map 'xk-f23 nil)
|
|
602 (define-function-key global-function-map 'xk-f24 nil)
|
|
603 (define-function-key global-function-map 'xk-f25 nil)
|
|
604 (define-function-key global-function-map 'xk-f26 nil)
|
|
605 (define-function-key global-function-map 'xk-f27 nil)
|
|
606 (define-function-key global-function-map 'xk-f28 nil)
|
|
607 (define-function-key global-function-map 'xk-f29 nil)
|
|
608 (define-function-key global-function-map 'xk-f30 nil)
|
|
609 (define-function-key global-function-map 'xk-f31 nil)
|
|
610 (define-function-key global-function-map 'xk-f32 nil)
|
|
611 (define-function-key global-function-map 'xk-f33 nil)
|
|
612 (define-function-key global-function-map 'xk-f34 nil)
|
|
613 (define-function-key global-function-map 'xk-f35 nil)
|