Emacs 24.3 with FCITX input methods[Resolved in 14.2]

You have a problem with Salix? Post here and we'll do what we can to help.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Emacs 24.3 with FCITX input methods[Resolved in 14.2]

Post by zw963 »

Hi, Here is a problem since I first use Slackware with Emacs, Whether you believe it or not,
This nightmare has been bothering me for many years.

It not be resolved ...

So, I Tried again PLEASE your guys understood deeply Linux help me!

Reproduce:

1. install emacs 24.3 with apt-get.

2. install FCITX (chinese input method) with slackbuild http://slackbuilds.org/repository/13.37/misc/fcitx/
or compile yourself from this github: https://github.com/fcitx/fcitx, I just use default setting.

3. start up with: `emacs -q ' (create a new GUI buffer), I work in this way.

4. input method is worked, when I press C-space (hotkey for FCITX), input method can active and can input chinese.

5. exit emacs with C-x C-c

6. start emacs again. now, When I press C-space, input method missing, only emacs complain: mark-active/mark-deactive.
But in Terminal, or any other GUI app, FCITX still worked for me.

So the only thing I can do is: relogin, restart emacs, FCITX worked again, but, I can not exit this process, and can not
startup a new emacs process, seem like only one emacs process can capture input method, if you quit ...

This problem happen in Slackware 13.1, Slackware 13.37, Slackware 14.01, Slackware 14.1, and Salix all version.

Any one can help me for this? does something missing about XIM support for others input method ?
Last edited by zw963 on 26. Feb 2017, 14:45, edited 2 times in total.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Emacs 24.3 with FCITX input methods

Post by mimosa »

Have you tried SCIM or Ibus? Chinese input (and CJK in general) seems to have a lot of problems however you go about it, and we really haven't found a solution we're happy with. Do you generally find fcitx is ok, apart from this problem with emacs?
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods

Post by zw963 »

mimosa wrote:Have you tried SCIM or Ibus? Chinese input (and CJK in general) seems to have a lot of problems however you go about it, and we really haven't found a solution we're happy with. Do you generally find fcitx is ok, apart from this problem with emacs?
It Happen on Scim, Ibus I have not tried, I think it should be same,

This problem is only occur on Emacs, any other app can work.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods

Post by zw963 »

mimosa wrote:Have you tried SCIM or Ibus? Chinese input (and CJK in general) seems to have a lot of problems however you go about it, and we really haven't found a solution we're happy with. Do you generally find fcitx is ok, apart from this problem with emacs?
Hi, guys, I found the difference Salix with Slackware (Because this cause, I almost go crazy)

When I use Slackware, Emacs will always can trigger FCITX input method unless you start a new emacs process, But in Salix,
When I startup one 32 bit (old version QT) application (I startup 32 bit application with setting LD_LIBRARY_PATH, and copy some 32 bit files
to this path), e.g. beyond compare 3, or Skype, Emacs will lost focus to FCITX, when restart emacsclient, I will can not use input method.

Any one can tell me what happen ?? Thanks.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods

Post by zw963 »

I have to go back to use Slackware. Some times, I will try salix again.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods[09/17 Update]

Post by zw963 »

I have switch return to Slackware 14.1 some month, the problem happen in this thread not happen again.

I hope Salix can take account some users with input methods, make salix work well with those user.
It seem like just missing some special files (though I does not know what file missing)
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods[09/17 Update]

Post by zw963 »

Switch back to Slackware 14.1 more than six months.

Input methods problem (chinese input) is not happen again, I want to know Salix fix this during this time?
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods[09/17 Update]

Post by zw963 »

from Slackware 14.1 return salix again.

Because Salix is most beautiful distro I used derived from Slackware.( I tried all)

I hope this time chinese input can worked fine with me.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods[09/17 Update]

Post by zw963 »

I want to use salix, I want to use mate, but still ...

start emacs with --daemon,

1. open a emacs frame, can input chinese.
2. exit emacs frame.
3. run a 32bit qt application, e.g. skype-4.3.0.37-x86_64-1sl
4. exit qt application
5. open a new emacs frame.
6. input method can not be actived.

Slackware 14.1 not this problem, why? please~~ I want to use this beautiful distro.
zw963
Posts: 82
Joined: 13. Mar 2014, 18:36

Re: Emacs 24.3 with FCITX input methods[09/17 Update]

Post by zw963 »

I try ibus.

when I install ibus-pinyin, it automatic install ibus 1.5.5

i settings following in my .profile

```sh
export XMODIFIERS="@im=ibus"
XIM_PROGRAM=/bin/true
XIM=ibus
XIM_ARGS=
SHORT_DESC="ibus"
LONG_DESC="ibus"
export GTK_IM_MODULE="ibus"
export QT_IM_MODULE="xim"
```

in my .xprofile
```sh
ibus-daemon -rxd &
```

reboot system, but I can not see the ibus icon in panel.

when I run ibus-setup, cause:

```sh
☠ $ ibus-setup
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 28, in <module>
from gi.repository import Gio
ImportError: No module named gi.repository
```

Could you help me??
thanks.
Post Reply