From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Mingde (Matthew) Zeng" Newsgroups: gmane.emacs.bugs Subject: bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method Date: Thu, 09 Dec 2021 03:40:07 +0000 Message-ID: <87y24utpig.fsf@posteo.net> References: <7db29009-200d-4921-20b1-71e2df37e67f@lausen.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23803"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 21456@debbugs.gnu.org, 27312@debbugs.gnu.org To: Leonard Lausen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 09 11:24:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvGay-0005pw-8w for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 11:24:12 +0100 Original-Received: from localhost ([::1]:33212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvGax-000507-5p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 05:24:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvGap-0004x8-9s for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 05:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59201) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvGap-0004HE-22 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 05:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvGao-0001vd-Um for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 05:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Mingde (Matthew) Zeng" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2021 10:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27312 X-GNU-PR-Package: emacs Original-Received: via spool by 27312-submit@debbugs.gnu.org id=B27312.16390454177337 (code B ref 27312); Thu, 09 Dec 2021 10:24:02 +0000 Original-Received: (at 27312) by debbugs.gnu.org; 9 Dec 2021 10:23:37 +0000 Original-Received: from localhost ([127.0.0.1]:42501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvGaO-0001uF-DA for submit@debbugs.gnu.org; Thu, 09 Dec 2021 05:23:37 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:38397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvAI7-0006CG-SM for 27312@debbugs.gnu.org; Wed, 08 Dec 2021 22:40:21 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 57A79240026 for <27312@debbugs.gnu.org>; Thu, 9 Dec 2021 04:40:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639021213; bh=2L6C7HGuLBR5P+XjkxrCA3vQ9sOP3VaNF6bFIwxdC/w=; h=From:To:Cc:Subject:Date:From; b=NiNXf/0a5oOKEQ+M53hxK7BURQyvVBOZXbftzEaP7dCKWUcpl5fLc93zlvsg1Bm9p K7uF6MmKol6UQd7q7e1ciDZlxmbAqJ/7Se6XxcavSmMhqkeTETB4S1BDpJ5Z0JhTQM 24gxW9kG/GkF2uDp24xKeapKbCV1uq0xazWOjDrjtX1t8PJ+5/hjAhTIdyXQ/DgkgF AZJx+dpHCNeO5hlGnZrxDLCwQ9QLMcAp0WLNLz62eYAHqwzQmSYzdZEoY3frfKSCoB BsO79T7FpjDprB425eeoyWltX99+hnInomE6Fs0r6WSe+lQYVJYSvkQ6+Vqj7vOYLP hwoEG20JYBacA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J8ftg5tQtz6tmT; Thu, 9 Dec 2021 04:40:11 +0100 (CET) In-Reply-To: <7db29009-200d-4921-20b1-71e2df37e67f@lausen.nl> (Leonard Lausen's message of "Sat, 10 Jun 2017 16:37:09 +0900") X-Mailman-Approved-At: Thu, 09 Dec 2021 05:23:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:221992 Archived-At: Hi, =20 I came across this bug report as I was having the same problem, and I also thought there was a bug in Emacs, as fcitx5 works great everywhere else. Note I'm using fcitx5 so it may not be exactly the same for you. > Specifically: > =E2=9E=9C ~ cat .xprofile > export XMODIFIERS=3D@im=3Dfcitx > export QT_IM_MODULE=3Dfcitx > export GTK_IM_MODULE=3Dfcitx > export LC_CTYPE=3Dzh_CN.UTF-8 Apparently these settings should be enough for every application to work, but when it doesn't work on some application, there is a bigger hole you have to dig into than simply looking at whether the environment variables are set properly - because they are, and Emacs respected it, fcit= x5 just didn't work in Emacs due to other reasons. You have to fully utilize `fcitx5-diagnose` to see what is wrong. 1. Open a subshell within Emacs, run `fcitx5-remote` to see if fcitx5 is surely not enabled. 2. Run `fcitx5-diagnose` in the subshell *and* outside Emacs (in a regular terminal), compare the results, look for errors I also got help from the fcitx5 maintainer: https://github.com/fcitx/fcitx5/issues/402 Anyways at the end of the day I'm using fcitx5 in Emacs, so I believe this = bug report should be closed. Mingde (Matthew) Zeng Leonard Lausen writes: > Even though all environment variables are (afaik) set up correctly, and > fcitx is working in all other programs, it does not work in emacs GUI > mode. It works fine if I start emacs in the terminal. I compiled emacs > myself using the Gentoo ebuild. > > I would be very thankful for any suggestions. Currently I believe it is > a bug in emacs (?). > > Specifically: > =E2=9E=9C ~ cat .xprofile > export XMODIFIERS=3D@im=3Dfcitx > export QT_IM_MODULE=3Dfcitx > export GTK_IM_MODULE=3Dfcitx > export LC_CTYPE=3Dzh_CN.UTF-8 > > In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.15) > of 2017-06-10 built on leonard-xps13 > Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 > Configured using: > 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu > --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man > --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc > --localstatedir=3D/var/lib --disable-dependency-tracking > --disable-silent-rules --docdir=3D/usr/share/doc/emacs-25.2 > --htmldir=3D/usr/share/doc/emacs-25.2/html --libdir=3D/usr/lib64 > --program-suffix=3D-emacs-25 --infodir=3D/usr/share/info/emacs-25 > --localstatedir=3D/var > --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp > --with-gameuser=3D:gamestat --without-compress-install > --with-file-notification=3Dinotify --enable-acl --with-dbus > --with-modules --with-gpm --without-hesiod --without-kerberos > --without-kerberos5 --with-xml2 --without-selinux --with-gnutls > --without-wide-int --with-zlib --with-sound=3Dalsa --with-x --without-ns > --without-gconf --without-gsettings --without-toolkit-scroll-bars > --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm > --with-imagemagick --with-xft --without-cairo --with-libotf > --with-m17n-flt --with-x-toolkit=3Dgtk3 --without-xwidgets > GENTOO_PACKAGE=3Dapp-editors/emacs-25.2 'CFLAGS=3D-march=3Dnative > -mtune=3Dnative -O2 -pipe' CPPFLAGS=3D 'LDFLAGS=3D-Wl,-O1 -Wl,--as-neede= d'' > > Configured features: > XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL GNUTLS > LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB GTK3 X11 MODULES > > Important settings: > value of $LC_COLLATE: C > value of $LC_CTYPE: zh_CN.UTF-8 > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: @im=3Dfcitx > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > global-eldoc-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > delete-backward-char: Text is read-only [3 times] > > Load-path shadows: > None found. > > Features: > (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml > mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies > mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail > rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu > cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util > china-util tooltip eldoc electric uniquify ediff-hook vc-hooks > lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset > image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode > prog-mode register page menu-bar rfn-eshadow timer select scroll-bar > mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham > georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao > korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech > european ethiopic indian cyrillic chinese charscript case-table epa-hook > jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice > loaddefs button faces cus-face macroexp files text-properties overlay > sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote dbusbind inotify dynamic-setting > font-render-setting move-toolbar gtk x-toolkit x multi-tty > make-network-process emacs) > > Memory information: > ((conses 16 86627 8161) > (symbols 48 19787 0) > (miscs 40 51 121) > (strings 32 14408 4750) > (string-bytes 1 413404) > (vectors 16 12193) > (vector-slots 8 484323 15836) > (floats 8 166 10) > (intervals 56 265 0) > (buffers 976 18) > (heap 1024 16091 922))