annotate src/input-method-motif.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 98b3721724bd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 /* Various functions for X11R5+ input methods, using the Motif XmIm* functions.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 input-method-xlib.c provides a lower-level implementation.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3 Copyright (C) 1996 Sun Microsystems.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10 later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 /* Synched up with: Not in FSF. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24 /* Written by Martin Buchholz. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 #include <config.h>
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 #include <X11/Xlocale.h> /* More portable than <locale.h> ? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 #include "lisp.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 #include "console-x.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 #include "device.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31 #include "frame.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 #include "EmacsFrame.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 #include <Xm/Xm.h>
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 #ifndef XIM_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 #error XIM_MOTIF is not defined??
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 Initialize_Locale (void)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 char *locale;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
44 /* dverna - Nov. 98: #### DON'T DO THIS !!! The default XtLanguageProc
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46 locale management, and especially the value of LC_NUMERIC. Anyway, since
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 at this point, we don't know yet whether we're gonna need an X11 frame,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 we should really do it manually and not use Xlib's dumb default routine */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 if ((locale = setlocale (LC_ALL, "")) == NULL)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 stderr_out ("Can't set locale.\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 stderr_out ("Using C locale instead.\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 putenv ("LANG=C");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55 putenv ("LC_ALL=C");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 if ((locale = setlocale (LC_ALL, "C")) == NULL)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 stderr_out ("Can't even set locale to `C'!\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59 return;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 if (!XSupportsLocale ())
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65 stderr_out ("X Windows does not support locale `%s'\n", locale);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66 stderr_out ("Using C Locale instead\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 putenv ("LANG=C");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 putenv ("LC_ALL=C");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 if ((locale = setlocale (LC_ALL, "C")) == NULL)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 stderr_out ("Can't even set locale to `C'!\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72 return;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 if (!XSupportsLocale ())
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 stderr_out ("X Windows does not even support locale `C'!\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 return;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 setlocale(LC_NUMERIC, "C");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 if (XSetLocaleModifiers ("") == NULL)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 stderr_out ("XSetLocaleModifiers(\"\") failed\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 stderr_out ("Check the value of the XMODIFIERS environment variable.\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 /* Create X input method for device */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 XIM_init_device (struct device *d)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94 /* Nothing to do */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
95 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
96
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 XIM_init_frame (struct frame *f)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 Widget w = FRAME_X_TEXT_WIDGET (f);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101 XPoint spot = {0,0};
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 XmFontList fontlist;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 XmFontListEntry fontlistEntry;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 typedef struct
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 XFontSet fontset;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 Pixel fg;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109 Pixel bg;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 } xim_resources_t;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 xim_resources_t xim_resources;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 /* mrb: #### Fix so that background and foreground is set from
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115 default face, rather than foreground and background resources, or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 that the user can use set-frame-parameters to set xic attributes */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
118 #define res(name, class, representation, field, default_value) \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
119 { name, class, representation, sizeof(xim_resources.field), \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
120 XtOffsetOf(xim_resources_t, field), \
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
121 XtRString, (XtPointer) (default_value) }
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 static XtResource resources[] =
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125 /* name class represent'n field default value */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 res(XtNfontSet, XtCFontSet, XtRFontSet, fontset, XtDefaultFontSet),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 res(XtNximForeground, XtCForeground, XtRPixel, fg, XtDefaultForeground),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 res(XtNximBackground, XtCBackground, XtRPixel, bg, XtDefaultBackground)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 };
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131 XtGetApplicationResources (w, &xim_resources,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132 resources, XtNumber (resources),
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 NULL, 0);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 if (! xim_resources.fontset)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137 stderr_out ("Can't get fontset resource for Input Method\n");
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 return;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 fontlistEntry = XmFontListEntryCreate(XmFONTLIST_DEFAULT_TAG,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 XmFONT_IS_FONTSET,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 (XtPointer) xim_resources.fontset);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 fontlist = XmFontListAppendEntry (NULL, fontlistEntry);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 XmImRegister (w, 0);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 XmImVaSetValues (w,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 XmNfontList, fontlist,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 XmNforeground, xim_resources.fg,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 XmNbackground, xim_resources.bg,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 XmNspotLocation, &spot,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 /* XmNlineSpace, 0, */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 NULL);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 XmFontListEntryFree (&fontlistEntry);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 XIM_SetGeometry (struct frame *f)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 XIM_SetSpotLocation (struct frame *f, int x, int y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 {
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
165 /* #### FIX: Must make sure spot fits within Preedit Area */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166 XPoint *spot = &(FRAME_X_XIC_SPOT (f));
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 if (spot->x == (short) x &&
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168 spot->y == (short) y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 return;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 spot->x = (short) x;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 spot->y = (short) y;
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 XmImVaSetValues (FRAME_X_TEXT_WIDGET (f), XmNspotLocation, spot, NULL);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 XIM_focus_event (struct frame *f, int in_p)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 if (in_p)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 XmImVaSetFocusValues (FRAME_X_TEXT_WIDGET (f), NULL);
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183 XmImUnsetFocus (FRAME_X_TEXT_WIDGET (f));
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 }
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186 void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 vars_of_input_method_motif (void)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 {
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189 Fprovide (intern ("xim"));
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190 }