Emacs 无法启动 XIM 输入法

某日把 Debian 所有的包更新以后,新启动的 Emacs 就无法启动 XIM 输入法。开始以为是 Emacs 更新的问题,所以回到以前肯定是对的版本,重新编译,问题依旧。说明可能跟 Emacs 本身没有关系。Google Emacs 和 Debian 相关的 bug report,发现[有些]是跟 xserver 的字体处理有关系。最后发现有这么一个[帖子],要建一个从 /usr/lib/X11/fonts 到 /usr/share/fonts/X11 符号链接。抱着死马当作活马医的想法,就试了一把,果然就成功了。这里总结一下 SCIM 在 Emacs 的使用:

  1. 首先将 SCIM 作为缺省的输入法,可以使用 im-switch 来配置。
  2. X 的核心字体必须要安装配置好,xfont-* 相关的包一定要装,/usr/lib/X11/fonts 必须要存在,可以是指向 /usr/share/fonts/X11 的符号链接。
  3. 我自己的 locale 是 en_US.UTF-8,但启动 Emacs 的时候必须使用 zh_CN,我这里用的是 zh_CN.UTF-8。

恐怕不对

我的Arch系统上就没有你说的目录。好像只要设置Emacs的中文locale就行了。

Emacs 版本?

我用的是用 bzr 上自己编译的,不知道跟这个有没有关系。

确认了

新买了一个笔记本,装了 Debian SID,仍然是自己编译最新的 Emacs,开始启动确实不能激活 SCIM,做了符号链接以后,立马可以。

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You can use BBCode tags in the text.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  _                  ___    _              _       _ 
(_) ___ _ __ / _ \ | |__ ___ | |__ | |
| | / __| | '_ \ | (_) | | '_ \ / __| | '_ \ | |
| | \__ \ | |_) | \__, | | |_) | | (__ | | | | | |
|_| |___/ | .__/ /_/ |_.__/ \___| |_| |_| |_|
|_|
Enter the code depicted in ASCII art style.