From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Leonard Lausen Newsgroups: gmane.emacs.bugs Subject: bug#27312: 25.2; can't activate fcitx even though env is set up correctly Date: Thu, 15 Jun 2017 10:55:55 +0900 Message-ID: <482d503a-4e11-3824-ae3e-c924bee8aca2@lausen.nl> References: <7db29009-200d-4921-20b1-71e2df37e67f@lausen.nl> <87r2ymrtyn.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497493093 26781 195.159.176.226 (15 Jun 2017 02:18:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 02:18:13 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cc: 27312@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 15 04:18:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLKML-0006Wr-H6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 04:18:09 +0200 Original-Received: from localhost ([::1]:51657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLKMN-0006jM-4l for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Jun 2017 22:18:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLKMH-0006jG-Ed for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 22:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLKME-0007UZ-8z for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 22:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45701) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLKME-0007UV-3t for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 22:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLKMD-0001Ez-OD for bug-gnu-emacs@gnu.org; Wed, 14 Jun 2017 22:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leonard Lausen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2017 02:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27312-submit@debbugs.gnu.org id=B27312.14974930674749 (code B ref 27312); Thu, 15 Jun 2017 02:18:01 +0000 Original-Received: (at 27312) by debbugs.gnu.org; 15 Jun 2017 02:17:47 +0000 Original-Received: from localhost ([127.0.0.1]:48378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLKLy-0001EW-Rr for submit@debbugs.gnu.org; Wed, 14 Jun 2017 22:17:47 -0400 Original-Received: from hercules.uberspace.de ([95.143.172.224]:49320 ident=JCf2GVORfI5) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLK10-0000jn-Un for 27312@debbugs.gnu.org; Wed, 14 Jun 2017 21:56:07 -0400 Original-Received: (qmail 20014 invoked from network); 15 Jun 2017 01:56:01 -0000 Original-Received: from localhost (HELO ?10.64.139.29?) (127.0.0.1) by hercules.uberspace.de with SMTP; 15 Jun 2017 01:56:01 -0000 In-Reply-To: <87r2ymrtyn.fsf@users.sourceforge.net> X-Mailman-Approved-At: Wed, 14 Jun 2017 22:17:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133599 Archived-At: On 06/15/2017 09:10 AM, npostavs@users.sourceforge.net wrote: > 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. > > By the "GUI mode" do you mean 'emacs' vs 'emacs -nw'? Or do you mean > that the you use a different kind of launcher? Sorry for being imprecise. Indeed I mean 'emacs -Q' vs 'emacs -Q -nw' > If you evaluate (getenv "XMODIFIERS") do you get the expected value? > Does evaluating (setenv "XMODIFIERS" "@im=fcitx") help? (getenv "XMODIFIERS") returns in "@im=fcitx" for both modes ("emacs -Q" and "emacs -Q -nw"). Running a further (setenv "XMODIFIERS" "@im=fcitx") does not make any difference. Note that if I press the Ctrl-Space key (which should change the fcitx input method) "emacs -Q" reports "Mark set" and "Mark deactivated", while for "emacs -Q -nw" the input method is changed correctly (i.e. I can input Chinese characters thereafter). Thanks for your help.