[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

?????? [PATCH] Add IME status change support on windows natively

From: Albert
Subject: ?????? [PATCH] Add IME status change support on windows natively
Date: Mon, 13 Apr 2020 14:06:09 +0800

Hi, Eli,

Evil is an extensible vi layer for Emacs. It emulates the main features of Vim, and provides facilities for writing custom extensions. I use Evil in emacs. When I press i  key or a key in normal mode, evil will change to insert mode, I can input something. When I press <ECS>, evil will change to normal mode, I can move the cursor by press h/j/k/l and some other commands like yank some lines.

Sometimes I need to input some chinese by open IME in evil insert mode when I press <SHIFT> to enable IME, when I press <ESC> to normal mode, IME is still open for chinese input, I have to press <SHIFT> to disable IME otherwise IME will still works for chinese input which stops me from do some commands like move the cursor in evil.

------------------ ???????? ------------------
??????: "Eli Zaretskii"<address@hidden>;
????????: 2020??4??13??(??????) ????1:47
??????: "Albert"<address@hidden>;
????: "emacs-devel"<address@hidden>;
????: Re: [PATCH] Add IME status change support on windows natively

> Date: Mon, 13 Apr 2020 07:53:00 +0300
> From: Eli Zaretskii <address@hidden>
> Cc: address@hidden
> Thanks.  Can you please tell more about the uses of this feature?  How
> would a user of Emacs use this, and what is the effect of using this
> on editing inside Emacs?
> I'm asking because we probably need to say something about this in the
> manual.
> >       (add-hook 'evil-insert-state-entry-hook 'emacs-ime-enable)
> >       (add-hook 'evil-insert-state-exit-hook 'emacs-ime-disable)

Hmm, the answer seems to be that the changes you proposed allow to
turn the IMM on and off at will.  E.g., the above setup turns IMM on
when Evil enters the "insert" mode.  However, Emacs is always in the
"insert" mode, so I wonder why and under what circumstances would an
Emacs user want to turn IMM off?  Perhaps that should happen
automatically in buffers where character keys do not insert
themselves, but are bound to commands, like Dired buffers and buffers
in view-mode and its derivatives?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]