annotate lisp/mule/mule-x-init.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents
children a145efe76779
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 ;;; mule-x-init.el --- initialization code for X Windows under MULE
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 ;; Copyright (C) 1994 Free Software Foundation, Inc.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3 ;; Copyright (C) 1996 Ben Wing <wing@666.com>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 ;; Author: various
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6 ;; Keywords: mule X11
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 ;; any later version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 ;; GNU General Public License for more details.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 ;;; Commentary:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 ;;; Code:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29 (defvar mule-x-win-initted nil)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 (defun init-mule-x-win ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 "Initialize X Windows for MULE at startup. Don't call this."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 (when (not mule-x-win-initted)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 (define-specifier-tag 'mule-fonts
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 (lambda (device) (eq 'x (device-type device))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37 (set-face-font
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 'default
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 '("-*-fixed-medium-r-*--16-*-iso8859-1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 "-*-fixed-medium-r-*--*-iso8859-1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41 "-*-fixed-medium-r-*--*-iso8859-2"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 "-*-fixed-medium-r-*--*-iso8859-3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 "-*-fixed-medium-r-*--*-iso8859-4"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 "-*-fixed-medium-r-*--*-iso8859-7"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45 "-*-fixed-medium-r-*--*-iso8859-8"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 "-*-fixed-medium-r-*--*-iso8859-5"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 "-*-fixed-medium-r-*--*-iso8859-9"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 ;; Following 3 fonts proposed by Teruhiko.Kurosaka@Japan.eng.sun
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50 "-sun-gothic-medium-r-normal--14-120-75-75-c-60-jisx0201.1976-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 "-sun-gothic-medium-r-normal--14-120-75-75-c-120-jisx0208.1983-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 "-wadalab-gothic-medium-r-normal--14-120-75-75-c-120-jisx0212.1990-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 ;; Other Japanese fonts
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 "-*-fixed-medium-r-*--*-jisx0201.1976-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 "-*-fixed-medium-r-*--*-jisx0208.1983-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56 "-*-fixed-medium-r-*--*-jisx0212*-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 ;; Chinese fonts
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 "-*-*-medium-r-*--*-gb2312.1980-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 ;; Use One font specification for CNS chinese
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62 ;; Too many variations in font naming
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 "-*-fixed-medium-r-*--*-cns11643*-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 ;; "-*-fixed-medium-r-*--*-cns11643*2"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 ;; "-*-fixed-medium-r-*--*-cns11643*3"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66 ;; "-*-fixed-medium-r-*--*-cns11643*4"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 ;; "-*-fixed-medium-r-*--*-cns11643.5-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 ;; "-*-fixed-medium-r-*--*-cns11643.6-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69 ;; "-*-fixed-medium-r-*--*-cns11643.7-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 "-*-fixed-medium-r-*--*-big5*-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72 "-*-fixed-medium-r-*--*-sisheng_cwnn-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74 ;; Other fonts
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 ;; "-*-fixed-medium-r-*--*-viscii1.1-1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 ;; "-*-fixed-medium-r-*--*-mulearabic-0"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 ;; "-*-fixed-medium-r-*--*-mulearabic-1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 ;; "-*-fixed-medium-r-*--*-mulearabic-2"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 ;; "-*-fixed-medium-r-*--*-muleipa-1"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 ;; "-*-fixed-medium-r-*--*-ethio-*"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 "-*-mincho-medium-r-*--*-ksc5601.1987-*" ; Korean
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 "-*-fixed-medium-r-*--*-tis620.2529-1" ; Thai
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 'global '(mule-fonts) 'append)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 (setq mule-x-win-initted t)))