Subject: Re: bug#53698: 29.0.50; ibus input method of chinese with rime engine can't work in v27 and ibus candidate menu blink in v29

From: Po Lu <[email-masked]>
Date: Thu, 03 Feb 2022 09:20:56 +0800

江 暇疆 <[email-masked]> writes:

>    i found a site say to use "lsof" checking if 'im-ibus.so' is called  for emacs,
>    then i use follow command:
>       emacs -q
>       ps -aux | grep emacs
>       lsof -p PID | grep im-ibus.so
>      -> grep found nothing.  in emacs -q , it can't input chinese.
>
>    so, i go to download src from https://github.com/emacs-mirror,
>    after the command  make   is done,
>    i tried these command:
>        ./src/emacs -q
>        ps -aux | grep emacs
>        lsof -p PID  | grep 'im-ibus.so'
>    -> emacs PID  kevin  mem       REG              259,3    34688 1847459 /usr/lib/gtk-3.0/3.0.0/immodules/im-ibus.so
>     -> 'im-ibus.so' it is there. and i can type chinese in emacs -q v29.
>     
>
>    i also tried to build:  https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz
>    with emacs -q, it can't input chinese using ibus,
>     and found nothing when use command:  
>         lsof -p PID  | grep 'im-ibus.so'.

The problem with Emacs 27 has already been fixed in 28.  So the real bug
is with the candidiate area blinking.

> but there still with two problem
>  (1). i found the menu is moved with cursor blink,
>     this short video is show what i say:  
>    (
>     https://drive.google.com/file/d/18ynnH5Zvv3C87JMqXumNFhwobgjiP3sC/view?usp=sharing
>     https://drive.google.com/file/d/16ghBGnQT8i03M3vxg456ZjyAAZMs665o/view?usp=sharing
>
>    one is no candidate word menu occur, in emacs 27 when swiched to ibus on and input.
>    another video is about the menu blink.
>    )
>
>  (2). since emacs 26, when i run ibus -rx ,
>       ibus only malfunction in emacs ,
>       in other like firefox work as normal.

Other programs such as Firefox typically use the GTK input module, while
Emacs uses XIM, which doesn't like it when the IM server restarts.

> could you hint me how to solved (1) mainly?  because there are
> packages or configs in emacs 29 can't work and the ibus menu blink
> when i type words in emacs 29 continuously using ibus-rime.

Does that only happen under Xwayland?  If so, set
`x-gtk-use-native-input' to t, which will let Emacs use the GTK input
module instead, and should resolve the issue.

Thanks.