From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Add IME status change support on windows natively Date: Mon, 13 Apr 2020 08:47:41 +0300 Message-ID: <83h7xoj5s2.fsf@gnu.org> References: <83k12kj8b7.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: georgealbert@qq.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 13 07:48:33 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jNrxR-00080v-VA for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 07:48:33 +0200 Original-Received: from localhost ([::1]:40544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNrxR-0003O3-16 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 01:48:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNrwr-0002ZN-2n for emacs-devel@gnu.org; Mon, 13 Apr 2020 01:47:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44203) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNrwl-0003fH-FM; Mon, 13 Apr 2020 01:47:51 -0400 Original-Received: from [176.228.60.248] (port=3640 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNrwk-000333-UO; Mon, 13 Apr 2020 01:47:51 -0400 In-Reply-To: <83k12kj8b7.fsf@gnu.org> (message from Eli Zaretskii on Mon, 13 Apr 2020 07:53:00 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246885 Archived-At: > Date: Mon, 13 Apr 2020 07:53:00 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > 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?