From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11732: 24.1; Microsoft IME Japanese input problem Date: Thu, 19 Feb 2015 08:44:01 +0200 Message-ID: <83k2ze4czy.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424328263 30576 80.91.229.3 (19 Feb 2015 06:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2015 06:44:23 +0000 (UTC) Cc: 11732@debbugs.gnu.org To: Fujii Hironori Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 19 07:44:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YOKqJ-0001On-6g for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 07:44:11 +0100 Original-Received: from localhost ([::1]:55082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOKqH-0002LV-Sw for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Feb 2015 01:44:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOKqE-0002Kz-5Z for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 01:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOKqA-0000lZ-Tj for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 01:44:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOKqA-0000lR-Qb for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 01:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOKqA-0005PX-3L for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 01:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Feb 2015 06:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11732 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 11732-submit@debbugs.gnu.org id=B11732.142432823320774 (code B ref 11732); Thu, 19 Feb 2015 06:44:02 +0000 Original-Received: (at 11732) by debbugs.gnu.org; 19 Feb 2015 06:43:53 +0000 Original-Received: from localhost ([127.0.0.1]:48306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOKq0-0005Oy-MR for submit@debbugs.gnu.org; Thu, 19 Feb 2015 01:43:53 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:46624) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOKpx-0005Op-Sb for 11732@debbugs.gnu.org; Thu, 19 Feb 2015 01:43:51 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NK000300AED9V00@a-mtaout22.012.net.il> for 11732@debbugs.gnu.org; Thu, 19 Feb 2015 08:43:48 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK0002S7AOZY690@a-mtaout22.012.net.il>; Thu, 19 Feb 2015 08:43:48 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99581 Archived-At: > Date: Thu, 19 Feb 2015 11:03:58 +0900 > From: Fujii Hironori > Cc: 11732@debbugs.gnu.org > > >> set_ime_composition_window_fn (context, &form); > >> release_ime_context_fn (hwnd, context); > >> } > >> - break; > >> + goto dflt; > >> > >> case WM_IME_ENDCOMPOSITION: > >> ignore_ime_char = 0; > > > > Passes the message to DefWindowProc even if we succeeded to handle > > WM_IME_STARTCOMPOSITION by calling ImmSetCompositionWindow. Why is > > that needed? > > If Emacs processes WM_IME_STARTCOMPOSITION itself, > default composition window won't be shown. > > Please see the document for the detail. > > https://msdn.microsoft.com/en-us/library/windows/desktop/dd374143%28v=vs.85%29.aspx > > | Remarks > | > | This message is a notification to an IME window to open its > | composition window. An application should process this message if it > | displays composition characters itself. > | > | If an application has created an IME window, it should pass this > | message to that window. The DefWindowProc function processes the > | message by passing it to the default IME window. Yes, I've read that, but it's still not clear to me what that mean in practice. Are you saying that ImmSetCompositionWindow only sets the position of the composition window, but it will not be shown unless we pass WM_IME_STARTCOMPOSITION to DefWindowProc? In that case, how will Windows know that the composition window we positioned is "the default IME window"? Or are you saying we should be calling ImmSetCompositionWindow at all? That call was introduced as result of solving bugs #2570 and #2569, so I think the call or its equivalent should stay. Sorry I'm asking all these questions, but I don't know enough about IME programming, and need to understand this in order to see that the patch doesn't break anything else. Thanks.