annotate lisp/x-win-xfree86.el @ 265:8efd647ea9ca r20-5b31

Import from CVS: tag r20-5b31
author cvs
date Mon, 13 Aug 2007 10:25:37 +0200
parents 157b30c96d03
children 8626e4521993
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
1 ;;; x-win-xfree86.el --- runtime initialization for XFree86 servers
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
2 ;; Copyright (C) 1995 Sun Microsystems, Inc.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995 Ben Wing.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
4
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
5 ;; Author: Ben Wing
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
6 ;; Author: Martin Buchholz (rewritten to use function-key-map)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
7 ;; Keywords: terminals
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
8
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
10
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
14 ;; any later version.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
15
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
19 ;; General Public License for more details.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
20
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
24 ;; Boston, MA 02111-1307, USA.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
25
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
26 ;;; Commentary:
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
27
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
28 ;; This file is loaded by x-win.el at run-time when we are sure that XEmacs
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
29 ;; is running on the display of something running XFree86 (Linux,
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
30 ;; NetBSD, FreeBSD, and perhaps other Intel Unixen).
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
31
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
32 ;;; #### bleck!!! Use key-translation-map!
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
33
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
34 ;;; #### Counter-bleck!! We shouldn't override a user binding for F13.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
35 ;;; So we use function-key-map for now.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
36 ;;; When we've implemented a fallback-style equivalent of
253
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
37 ;;; keyboard-translate-table, we'll use that instead. (martin)
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
38
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
39 ;; For no obvious reason, shift-F1 is called F13, although Meta-F1 and
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
40 ;; Control-F1 have normal names.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents:
diff changeset
41
229
434959a2fba3 Import from CVS: tag r20-5b13
cvs
parents: 209
diff changeset
42 (defun x-win-init-xfree86 ()
253
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
43 (loop for (key sane-key) in
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
44 '((f13 f1)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
45 (f14 f2)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
46 (f15 f3)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
47 (f16 f4)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
48 (f17 f5)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
49 (f18 f6)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
50 (f19 f7)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
51 (f20 f8)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
52 (f21 f9)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
53 (f22 f10)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
54 (f23 f11)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
55 (f24 f12))
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
56 do
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
57 (when (and (x-keysym-on-keyboard-p key)
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
58 (not (x-keysym-on-keyboard-sans-modifiers-p key)))
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
59 ;; define also the control, meta, and meta-control versions.
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
60 (loop for mods in '(() (control) (meta) (meta control)) do
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
61 (define-key function-key-map `[(,@mods ,key)] `[(shift ,@mods ,sane-key)])
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 229
diff changeset
62 ))))
229
434959a2fba3 Import from CVS: tag r20-5b13
cvs
parents: 209
diff changeset
63
434959a2fba3 Import from CVS: tag r20-5b13
cvs
parents: 209
diff changeset
64 ;;; x-win-xfree86.el ends here