#endif
Lisp_Object Qxim_xlib;
-#define xim_warn(str) warn_when_safe (Qxim_xlib, Qwarning, str);
-#define xim_warn1(fmt, str) warn_when_safe (Qxim_xlib, Qwarning, fmt, str);
-#define xim_info(str) warn_when_safe (Qxim_xlib, Qinfo, str);
+#define xim_warn(str) warn_when_safe (Qxim_xlib, Qwarning, str)
+#define xim_warn1(fmt, str) warn_when_safe (Qxim_xlib, Qwarning, fmt, str)
+#define xim_warn2(fmt, str1, str2) \
+ warn_when_safe (Qxim_xlib, Qwarning, fmt, str1, str2)
+#define xim_info(str) warn_when_safe (Qxim_xlib, Qinfo, str)
#ifdef XIM_XLIB /* XIM_XLIB specific */
/* Get/Set IC values for just one attribute */
XFree (s_list);
if (!xic) {
- xim_warn ("Warning: XCreateIC failed.\n");
+ char *lang = getenv("LANG");
+ char *xmodifiers = getenv("XMODIFIERS");
+ xim_warn2 ("Warning: XCreateIC failed. LANG='%s' XMODIFIERS='%s'\n",
+ (lang?lang:""), (xmodifiers?xmodifiers:""));
return;
}