unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
@ 2017-06-10  7:37 Leonard Lausen
  2017-06-15  0:10 ` npostavs
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Leonard Lausen @ 2017-06-10  7:37 UTC (permalink / raw)
  To: 27312

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:
➜  ~ cat .xprofile
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export LC_CTYPE=zh_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=/usr --build=x86_64-pc-linux-gnu
 --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
 --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
 --localstatedir=/var/lib --disable-dependency-tracking
 --disable-silent-rules --docdir=/usr/share/doc/emacs-25.2
 --htmldir=/usr/share/doc/emacs-25.2/html --libdir=/usr/lib64
 --program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25
 --localstatedir=/var
 --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
 --with-gameuser=:gamestat --without-compress-install
 --with-file-notification=inotify --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=alsa --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=gtk3 --without-xwidgets
 GENTOO_PACKAGE=app-editors/emacs-25.2 'CFLAGS=-march=native
 -mtune=native -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''

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=fcitx
  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))





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
  2017-06-10  7:37 bug#27312: 25.2; can't activate fcitx even though env is set up correctly Leonard Lausen
@ 2017-06-15  0:10 ` npostavs
  2017-06-15  1:55   ` Leonard Lausen
  2021-12-09  3:40 ` bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method Mingde (Matthew) Zeng
  2021-12-09  3:42 ` Mingde (Matthew) Zeng
  2 siblings, 1 reply; 9+ messages in thread
From: npostavs @ 2017-06-15  0:10 UTC (permalink / raw)
  To: Leonard Lausen; +Cc: 27312

Leonard Lausen <leonard@lausen.nl> 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?

> 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:
> ➜  ~ cat .xprofile
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx
> export GTK_IM_MODULE=fcitx
> export LC_CTYPE=zh_CN.UTF-8

If you evaluate (getenv "XMODIFIERS") do you get the expected value?
Does evaluating (setenv "XMODIFIERS" "@im=fcitx") help?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
  2017-06-15  0:10 ` npostavs
@ 2017-06-15  1:55   ` Leonard Lausen
  2017-06-15  3:22     ` npostavs
  0 siblings, 1 reply; 9+ messages in thread
From: Leonard Lausen @ 2017-06-15  1:55 UTC (permalink / raw)
  To: npostavs; +Cc: 27312

On 06/15/2017 09:10 AM, npostavs@users.sourceforge.net wrote:
> Leonard Lausen <leonard@lausen.nl> 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.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
  2017-06-15  1:55   ` Leonard Lausen
@ 2017-06-15  3:22     ` npostavs
  2017-06-15  3:55       ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: npostavs @ 2017-06-15  3:22 UTC (permalink / raw)
  To: Leonard Lausen; +Cc: 27312

Leonard Lausen <leonard@lausen.nl> writes:

>> 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.

Ok, I see that according to Bug#10867, it should work with your setup.
Have you ever got it working with older Emacs versions?

I guess you've also verified that 'locale -a' shows 'zh_CN.UTF-8'?  I'm
afraid I don't know how to troubleshoot this any further.

> 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).

Yeah, I guess for 'emacs -nw' it's really the terminal program that
handles the input method, Emacs doesn't know anything about it.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
  2017-06-15  3:22     ` npostavs
@ 2017-06-15  3:55       ` Eli Zaretskii
  2017-06-15  4:47         ` Leonard Lausen
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2017-06-15  3:55 UTC (permalink / raw)
  To: npostavs, Leonard Lausen; +Cc: 27312

On June 15, 2017 6:22:33 AM GMT+03:00, npostavs@users.sourceforge.net wrote:
> Leonard Lausen <leonard@lausen.nl> writes:
> 
> >> 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.
> 
> Ok, I see that according to Bug#10867, it should work with your setup.
> Have you ever got it working with older Emacs versions?
> 
> I guess you've also verified that 'locale -a' shows 'zh_CN.UTF-8'? 
> I'm
> afraid I don't know how to troubleshoot this any further.
> 
> > 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).
> 
> Yeah, I guess for 'emacs -nw' it's really the terminal program that
> handles the input method, Emacs doesn't know anything about it.

etc/PROBLEMS mentions an issue with fcitx; could this be the same or similar
issue?





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: 25.2; can't activate fcitx even though env is set up correctly
  2017-06-15  3:55       ` Eli Zaretskii
@ 2017-06-15  4:47         ` Leonard Lausen
  0 siblings, 0 replies; 9+ messages in thread
From: Leonard Lausen @ 2017-06-15  4:47 UTC (permalink / raw)
  To: Eli Zaretskii, npostavs; +Cc: 27312

>> Ok, I see that according to Bug#10867, it should work with your setup.
>> Have you ever got it working with older Emacs versions?
>>
>> I guess you've also verified that 'locale -a' shows 'zh_CN.UTF-8'? 
>> I'm
>> afraid I don't know how to troubleshoot this any further.

'locale -a' shows zh_CN.utf8. However, starting emacs
"LC_CTYPE=zh_CN.utf8 emacs -Q" does not make any difference and as far
as I understand zh_CN.utf8 and h_CN.UTF-8 should be equivalent (?).

This was working on another system (based on Ubuntu) with version
24.5.1. Currently I'm on Gentoo and was not able to get it working with
both emacs 25 and emacs 24. (I attach the USE flags at the end of this
mail.)

>>> 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).
>>
>> Yeah, I guess for 'emacs -nw' it's really the terminal program that
>> handles the input method, Emacs doesn't know anything about it.

Yes, that would make sense.

> etc/PROBLEMS mentions an issue with fcitx; could this be the same or similar
> issue?

The issue in etc/PROBLEMS seems to be the inverse of the problem that I
am experiencing. In etc/PROBLEMS, the problem is that C-SPC is captured
by fcitx and emacs does not receive the C-SPC command. However for me, I
want C-SPC to be intercepted by fcitx to change the layout instead of
emacs handling the key. Currently in all other programs C-SPC correctly
switches the layout (i.e. is intercepted by fcitx), however in "emacs
-Q" the key is intercepted by emacs.

The current behavior of emacs is essentially the same as what #10867
describes to happen if LC_CTYPE  is not "zh_CN.UTF-8", though in my case
LC_CTYPE seems to be set correctly. So it seems there is some other
bug(/error in my configuration) that prevents emacs from supporting X
input method (?).


USE flags:
✗ equery uses emacs
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-editors/emacs-25.2:
 U I
 + + X                   : Add support for X11
 - - Xaw3d               : Add support for the 3d athena widget set
 + + acl                 : Add support for Access Control Lists
 + + alsa                : Add support for media-libs/alsa-lib (Advanced
Linux Sound Architecture)
 - - athena              : Enable the MIT Athena widget set
(x11-libs/libXaw)
 + + dbus                : Enable dbus support for anything that needs
it (gpsd, gnomemeeting, etc)
 + + dynamic-loading     : Enable loading of dynamic libraries at runtime
 - - games               : Support shared score files for games
 + + gconf               : Use gnome-base/gconf to read the system font name
 - - gfile               : Use gfile (dev-libs/glib) for file notification
 + + gif                 : Add GIF image support
 + + gpm                 : Add support for sys-libs/gpm (Console-based
mouse driver)
 + + gsettings           : Use gsettings (dev-libs/glib) to read the
system font name
 + + gtk                 : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 + + gtk3                : Prefer version 3 of the GIMP Toolkit to
version 2 (x11-libs/gtk+)
 - - gzip-el             : Compress bundled Emacs Lisp source
 - - hesiod              : Enable support for net-dns/hesiod
 + + imagemagick         : Use media-gfx/imagemagick for image processing
 + + inotify             : Enable inotify filesystem monitoring support
 + + jpeg                : Add JPEG image support
 - - kerberos            : Add kerberos support
 + + libxml2             : Use dev-libs/libxml2 to parse XML instead of
the internal Lisp implementations
 - - livecd              : !!internal use only!! DO NOT SET THIS FLAG
YOURSELF!, used during livecd building
 + + m17n-lib            : Enable m17n-lib support
 - - motif               : Add support for the Motif toolkit
 - - pax_kernel          : Enable building under a PaX enabled kernel
 + + png                 : Add support for libpng (PNG images)
 + + sound               : Enable sound support
 + + source              : Install C source files and make them
available for find-function
 + + ssl                 : Add support for Secure Socket Layer connections
 + + svg                 : Add support for SVG (Scalable Vector Graphics)
 + + tiff                : Add support for the TIFF image format
 - - toolkit-scroll-bars : Use the selected toolkit's scrollbars in
preference to Emacs' own scrollbars
 - - wide-int            : Prefer wide Emacs integers (typically
62-bit). This option has an effect only on architectures where "long"
and "long long" types have different size.
 + + xft                 : Build with support for XFT font renderer
(x11-libs/libXft)
 + + xpm                 : Add support for XPM graphics format
 + + zlib                : Add support for zlib (de)compression





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method
  2017-06-10  7:37 bug#27312: 25.2; can't activate fcitx even though env is set up correctly Leonard Lausen
  2017-06-15  0:10 ` npostavs
@ 2021-12-09  3:40 ` Mingde (Matthew) Zeng
  2021-12-10  0:42   ` bug#21456: " Lars Ingebrigtsen
  2021-12-09  3:42 ` Mingde (Matthew) Zeng
  2 siblings, 1 reply; 9+ messages in thread
From: Mingde (Matthew) Zeng @ 2021-12-09  3:40 UTC (permalink / raw)
  To: Leonard Lausen; +Cc: 21456, 27312

Hi,
 
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:
> ➜  ~ cat .xprofile
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx
> export GTK_IM_MODULE=fcitx
> export LC_CTYPE=zh_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, fcitx5
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 <leonard@lausen.nl> 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:
> ➜  ~ cat .xprofile
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx
> export GTK_IM_MODULE=fcitx
> export LC_CTYPE=zh_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=/usr --build=x86_64-pc-linux-gnu
>  --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
>  --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
>  --localstatedir=/var/lib --disable-dependency-tracking
>  --disable-silent-rules --docdir=/usr/share/doc/emacs-25.2
>  --htmldir=/usr/share/doc/emacs-25.2/html --libdir=/usr/lib64
>  --program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25
>  --localstatedir=/var
>  --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
>  --with-gameuser=:gamestat --without-compress-install
>  --with-file-notification=inotify --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=alsa --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=gtk3 --without-xwidgets
>  GENTOO_PACKAGE=app-editors/emacs-25.2 'CFLAGS=-march=native
>  -mtune=native -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''
>
> 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=fcitx
>   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))





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method
  2017-06-10  7:37 bug#27312: 25.2; can't activate fcitx even though env is set up correctly Leonard Lausen
  2017-06-15  0:10 ` npostavs
  2021-12-09  3:40 ` bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method Mingde (Matthew) Zeng
@ 2021-12-09  3:42 ` Mingde (Matthew) Zeng
  2 siblings, 0 replies; 9+ messages in thread
From: Mingde (Matthew) Zeng @ 2021-12-09  3:42 UTC (permalink / raw)
  To: Leonard Lausen; +Cc: 21456, 27312

Hi,

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:
> ➜  ~ cat .xprofile
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx
> export GTK_IM_MODULE=fcitx
> export LC_CTYPE=zh_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, fcitx5
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 <leonard@lausen.nl> 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:
> ➜  ~ cat .xprofile
> export XMODIFIERS=@im=fcitx
> export QT_IM_MODULE=fcitx
> export GTK_IM_MODULE=fcitx
> export LC_CTYPE=zh_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=/usr --build=x86_64-pc-linux-gnu
>  --host=x86_64-pc-linux-gnu --mandir=/usr/share/man
>  --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
>  --localstatedir=/var/lib --disable-dependency-tracking
>  --disable-silent-rules --docdir=/usr/share/doc/emacs-25.2
>  --htmldir=/usr/share/doc/emacs-25.2/html --libdir=/usr/lib64
>  --program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25
>  --localstatedir=/var
>  --enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
>  --with-gameuser=:gamestat --without-compress-install
>  --with-file-notification=inotify --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=alsa --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=gtk3 --without-xwidgets
>  GENTOO_PACKAGE=app-editors/emacs-25.2 'CFLAGS=-march=native
>  -mtune=native -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1 -Wl,--as-needed''
>
> 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=fcitx
>   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))





^ permalink raw reply	[flat|nested] 9+ messages in thread

* bug#21456: bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method
  2021-12-09  3:40 ` bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method Mingde (Matthew) Zeng
@ 2021-12-10  0:42   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-10  0:42 UTC (permalink / raw)
  To: Mingde (Matthew) Zeng; +Cc: 21456, Leonard Lausen, 27312

"Mingde (Matthew) Zeng" <matthewzmd@posteo.net> writes:

> Anyways at the end of the day I'm using fcitx5 in Emacs, so I believe this bug
>     report should be closed.

OK; I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-10  0:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-10  7:37 bug#27312: 25.2; can't activate fcitx even though env is set up correctly Leonard Lausen
2017-06-15  0:10 ` npostavs
2017-06-15  1:55   ` Leonard Lausen
2017-06-15  3:22     ` npostavs
2017-06-15  3:55       ` Eli Zaretskii
2017-06-15  4:47         ` Leonard Lausen
2021-12-09  3:40 ` bug#27312: bug#21456: 24.5; Emacs does not respect fcitx as GTK input method Mingde (Matthew) Zeng
2021-12-10  0:42   ` bug#21456: " Lars Ingebrigtsen
2021-12-09  3:42 ` Mingde (Matthew) Zeng

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).