I can't use fcitx with Emacs when I build with GTK3. I found a solution from OpenSUSE https://build.opensuse.org/package/view_file/home:AndreasSchwab:emacs:26/emacs/emacs-24.4-xim.patch?expand=1. Could we add this patch as an option in configure. Because I understand a lot of people may use C-<SPC> as set-mark-command even C-@ works as same.
Could you provide more information? Based on the patch location, it seems the problem is not specific to FreeBSD/gtk3. Is that correct? Searching [1,2], I see recent discussions that suggest fcitx can work with some tinkering. Have you tried these? I am not necessary opposed to patching the FreeBSD port, but this is a topic that I am not familiar with and would like to understand the problem better. [1] https://www.reddit.com/r/emacs/comments/bndaif/chinese_input/en4o53e/ [2] https://wiki.archlinux.org/index.php/Fcitx#Emacs
(In reply to Joseph Mingrone from comment #1) I saw your references. And I have tried it. Yes, it can solve it. And I know Emacs has its own input method of CJK, it can work great. But we are working under en_US.UTF-8 and IBus can work without the changing LC_TYPES. I don't know why this could happen, because I think both IBus and fcitx implement the XIM protocol, but they have different behaviors. So I think this patch can be included as an option in configure. So I don't have to write a script to warp the Emacs.