Bug 242012 - editors/emacs: Cannot use fcitx with Emacs when built with GTK3
Summary: editors/emacs: Cannot use fcitx with Emacs when built with GTK3
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: emacs
URL: https://build.opensuse.org/package/vi...
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-11-16 21:13 UTC by David Gao
Modified: 2019-11-18 23:12 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (emacs)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Gao 2019-11-16 21:13:41 UTC
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.
Comment 1 Joseph Mingrone freebsd_committer 2019-11-18 12:21:22 UTC
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
Comment 2 David Gao 2019-11-18 23:12:50 UTC
(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.