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: =?gb18030?B?u9i4tKO6?= [PATCH] Add IME status change support on windows natively Date: Mon, 13 Apr 2020 18:32:47 +0300 Message-ID: <83r1wrieow.fsf@gnu.org> References: <83k12kj8b7.fsf@gnu.org> <83d08bkimi.fsf@gnu.org> <83blnvkhrx.fsf@gnu.org> <83a73fkgqt.fsf@gnu.org> <838sizkfzl.fsf@gnu.org> <833697k9wu.fsf@gnu.org> <83zhbfilas.fsf@gnu.org> <83wo6jijon.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="129871"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Albert" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 13 17:34:07 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 1jO165-000XbP-Bi for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 17:34:05 +0200 Original-Received: from localhost ([::1]:45484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO164-0002mh-EK for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 11:34:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55321) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO154-00022H-1U for emacs-devel@gnu.org; Mon, 13 Apr 2020 11:33:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jO152-000684-VN; Mon, 13 Apr 2020 11:33:01 -0400 Original-Received: from [176.228.60.248] (port=1516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jO14x-0006cW-HD; Mon, 13 Apr 2020 11:33:00 -0400 In-Reply-To: (georgealbert@qq.com) 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:246916 Archived-At: > From: "Albert" > Cc: "emacs-devel" > Date: Mon, 13 Apr 2020 22:52:30 +0800 > > > commit 61da72 is different from commit c6ecda. We don't need to get IME status before setting IME status. > If IME is the same status when setting it in the same status, IME will ignore the status changing. Emacs can > be a litttle bit faster if get_ime_open_status_fn() is not invoked. > > And IME somtimes doesn't fully comply with Microsoft IME api, RIME for example. RIME which is a open > source chinese ime doesn't return the status as Microsoft pinyin IME. When Microsoft pinyin IME is > activated, if Microsoft pinyin is in english mode, w32-get-ime-open-status() return nil. If Microsoft pinyin is in > chinese mode, w32-get-ime-open-status() return t. We can press to switch between two modes > by default. > > When RIME is activated, w32-get-ime-open-status() return t whenever IME is in english mode or chinese > mode. > > I modified code in w32-get-ime-open-status(). w32-get-ime-open-status() can get the status from IME. Thanks, installed.