[Momonga-users.ja:00044] how to avoid "(xim-xlib/warning) Warning: XCreateIC failed." on using XEmacs
- From: HOSONO Hidetomo <h@xxxxxxxx>
- Date: Wed, 21 Aug 2002 08:35:24 +0900 (JST)
ほそのひでともです。
あと、これも備忘録として残しておきます。
LANG=ja_JP[.EUC-JP]のときにXEmacsを起動し、
なおかつXIMが何も動いていない場合、
決まって*Warning*バッファに
(1) (xim-xlib/warning) Warning: XCreateIC failed.
(2) (xim-xlib/warning) Warning: XCreateIC failed.
(3) (xim-xlib/warning) Warning: XCreateIC failed.
という感じのワーニングが出ます。
これを抑えるためには、
;; displaying of warning
(setq display-warning-minimum-level 'error)
(setq log-warning-minimum-level 'error)
と.emacsに書きます。
--
冒頭の現象は、display-warning-minimum-levelと
log-warning-minimum-levelの値が
それぞれinfoになっているがために発生します。
実は、XEmacsでは
M-x help-for-help v warning-level-alistすると分かるように
`warning-level-alist' is a variable declared in Lisp.
-- loaded from "/home/h12o.org/h/work/h.cvs.momonga-linux.org/home/cvs/pkgs/xemacs/BUILD/xemacs-21.4.8/lisp/simple.elc"
Value: ((emergency . 8) (alert . 7) (critical . 6) (error . 5) (warning . 4) (notice . 3) (info . 2) (debug . 1))
Documentation:
not documented as a variable.
という感じでワーニングのレベルが規定されているのですが、
warningはinfoより上なので、
このままでは上記のメッセージを抑えることができないのです。
--
ほそのひでとも