From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 18 02:40:08 2012 Received: (at submit) by debbugs.gnu.org; 18 Jun 2012 06:40:08 +0000 Received: from localhost ([127.0.0.1]:46389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgVd9-0000EH-EK for submit@debbugs.gnu.org; Mon, 18 Jun 2012 02:40:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46500) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SgUWK-0006FL-DI for submit@debbugs.gnu.org; Mon, 18 Jun 2012 01:29:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgUT5-00089T-PA for submit@debbugs.gnu.org; Mon, 18 Jun 2012 01:25:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgUT5-000895-Ky for submit@debbugs.gnu.org; Mon, 18 Jun 2012 01:25:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgUT3-0005ag-Po for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2012 01:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgUT1-00085J-GX for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2012 01:25:37 -0400 Received: from mail.math.kyushu-u.ac.jp ([133.5.165.2]:52215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgUT0-000834-V2 for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2012 01:25:35 -0400 Received: from XAVIER-PC (fg110c.l.math.kyushu-u.ac.jp [172.24.0.254]) by mail.math.kyushu-u.ac.jp (Postfix) with ESMTP id 66444400FA4 for ; Mon, 18 Jun 2012 14:25:29 +0900 (JST) From: xavier.dahan@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.1; Microsoft IME Japanese input problem Date: Mon, 18 Jun 2012 14:20:37 +0900 Message-ID: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Jun 2012 02:40:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Problem to use the native Microsoft IME Japanese input tool to write in Japanese within Emacs. Japanese keyboard. Windows 7, fully in Japanese (locale, language). Switching to Japanese IME input in Emacs makes the user "blind". Can not see what we are typing (like when typing a password) until is pressed: - either 2 times "space". Then the small IME window displaying the kanji choices corresponding to what has been typeset (blind) appears on the bottom-right of the screen. - either "enter". Then the hiragana that have been typeset (blind) are printed in Emacs. That's all. Best regards, Xavier. -------------------------------------------------------------------------- In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: JPN value of $XMODIFIERS: nil locale-coding-system: cp932 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-c C-c M-x b u g - r e r e p o r t - e m a Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view time-date japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 11:46:32 2015 Received: (at 11732) by debbugs.gnu.org; 17 Feb 2015 16:46:32 +0000 Received: from localhost ([127.0.0.1]:46489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNlI8-0006Kx-6o for submit@debbugs.gnu.org; Tue, 17 Feb 2015 11:46:32 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:35521) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNfMd-0004aP-De for 11732@debbugs.gnu.org; Tue, 17 Feb 2015 05:26:48 -0500 Received: by lbjb6 with SMTP id b6so3576720lbj.2 for <11732@debbugs.gnu.org>; Tue, 17 Feb 2015 02:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=a3H8hg5gWt5gvNDLyBZoHrtxBL2DZCG7j/qq0F/PzK8=; b=Qrudi+ub3AxLYDdROL1K9K51CVSzogbAnBQ0xSI7NUrleKZlEW6nvbq1H8+ixLpD9m +k8TURZ8f3PtiNe2Ls1s0O5T3u98HDYUzDrKwPWoswGilZ8EmCJByf0qSzju96m2fmON nuxS5J0psqjQN4HemyHRppEhj+LIwI4OJnBidXSuZBIul5eBEJutEFFJUdT+fATiG8hf PxDQUN9safA1UlTHwW+3YnFN1PczfUbS/xHLN0xJlxlPIyyU7ALCe7noysxbn09N5jfy mfuyz7iCJCT0HTLOdS+v7/7ee6VH9jDeckCj29EhJ++JU2d5qOiaalpyXjg4aOmXYTnJ pjHA== MIME-Version: 1.0 X-Received: by 10.152.204.69 with SMTP id kw5mr23605677lac.3.1424168801646; Tue, 17 Feb 2015 02:26:41 -0800 (PST) Received: by 10.112.64.42 with HTTP; Tue, 17 Feb 2015 02:26:41 -0800 (PST) Date: Tue, 17 Feb 2015 19:26:41 +0900 Message-ID: Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem From: Fujii Hironori To: 11732@debbugs.gnu.org Content-Type: multipart/mixed; boundary=001a11342dfc8621e0050f462327 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 X-Mailman-Approved-At: Tue, 17 Feb 2015 11:46:30 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11342dfc8621e0050f462327 Content-Type: text/plain; charset=UTF-8 WM_IME_STARTCOMPOSITION should be passed to DefWindowProc. On Mon, 18 Jun 2012 14:20:37 +0900, xavier.dahan@gmail.com wrote: > > Problem to use the native Microsoft IME Japanese input tool to write in > Japanese within Emacs. > > Japanese keyboard. > > Windows 7, fully in Japanese (locale, language). > > Switching to Japanese IME input in Emacs makes the user "blind". > Can not see what we are typing (like when typing a password) until is pressed: > > - either 2 times "space". Then the small IME window displaying the kanji > choices corresponding to what has been typeset (blind) appears on the > bottom-right of the screen. > > - either "enter". Then the hiragana that have been typeset (blind) are printed > in Emacs. > > That's all. Best regards, Xavier. > -------------------------------------------------------------------------- > > In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) > of 2012-06-10 on MARVIN > Windowing system distributor `Microsoft Corp.', version 6.1.7601 > Configured using: > `configure --with-gcc (4.6) --cflags > -ID:/devel/emacs/libs/libXpm-3.5.8/include > -ID:/devel/emacs/libs/libXpm-3.5.8/src > -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include > -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include > -ID:/devel/emacs/libs/giflib-4.1.4-1/include > -ID:/devel/emacs/libs/jpeg-6b-4/include > -ID:/devel/emacs/libs/tiff-3.8.2-1/include > -ID:/devel/emacs/libs/gnutls-3.0.9/include' > > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: JPN > value of $XMODIFIERS: nil > locale-coding-system: cp932 > default enable-multibyte-characters: t > > Major mode: Lisp Interaction > > Minor modes in effect: > tooltip-mode: t > mouse-wheel-mode: t > tool-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > C-c C-c M-x b u g - r e > > > r e > p o r t - e m a > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Making completion list... > > Load-path shadows: > None found. > > Features: > (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml > mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev > gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums > mm-util mail-prsvr mail-utils help-mode easymenu view time-date > japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 > disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe > lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar > mouse jit-lock font-lock syntax facemenu font-core frame cham georgian > utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean > japanese hebrew greek romanian slovak czech european ethiopic indian > cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev > minibuffer loaddefs button faces cus-face files text-properties overlay > sha1 md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote make-network-process multi-tty emacs) > > > > --001a11342dfc8621e0050f462327 Content-Type: application/octet-stream; name="a.patch" Content-Disposition: attachment; filename="a.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i695blv10 ZGlmZiAtLWdpdCBhL3NyYy93MzJmbnMuYyBiL3NyYy93MzJmbnMuYwppbmRleCAwODAwMGQ4Li4z YjAyMTNkIDEwMDY0NAotLS0gYS9zcmMvdzMyZm5zLmMKKysrIGIvc3JjL3czMmZucy5jCkBAIC0z Mjk1LDEyICszMjk1LDEyIEBAIHczMl93bmRfcHJvYyAoSFdORCBod25kLCBVSU5UIG1zZywgV1BB UkFNIHdQYXJhbSwgTFBBUkFNIGxQYXJhbSkKIAkgICAgIGZpZWxkIGJlaW5nIHJlc2V0IHRvIG5p bC4gICovCiAJICBmID0geF93aW5kb3dfdG9fZnJhbWUgKGRweWluZm8sIGh3bmQpOwogCSAgaWYg KCEoZiAmJiBGUkFNRV9MSVZFX1AgKGYpKSkKLQkgICAgYnJlYWs7CisJICAgIGdvdG8gZGZsdDsK IAkgIHcgPSBYV0lORE9XIChGUkFNRV9TRUxFQ1RFRF9XSU5ET1cgKGYpKTsKIAkgIC8qIFB1bnQg aWYgc29tZW9uZSBjaGFuZ2VkIHRoZSBmcmFtZSdzIHNlbGVjdGVkIHdpbmRvdwogCSAgICAgYmVo aW5kIG91ciBiYWNrLiAqLwogCSAgaWYgKHcgIT0gdzMyX3N5c3RlbV9jYXJldF93aW5kb3cpCi0J ICAgIGJyZWFrOworCSAgICBnb3RvIGRmbHQ7CiAKIAkgIGZvcm0uZHdTdHlsZSA9IENGU19SRUNU OwogCSAgZm9ybS5wdEN1cnJlbnRQb3MueCA9IHczMl9zeXN0ZW1fY2FyZXRfeDsKQEAgLTMzMTgs MTcgKzMzMTgsMTcgQEAgdzMyX3duZF9wcm9jIChIV05EIGh3bmQsIFVJTlQgbXNnLCBXUEFSQU0g d1BhcmFtLCBMUEFSQU0gbFBhcmFtKQogCiAJICAvKiBQdW50IGlmIHRoZSB3aW5kb3cgd2FzIGRl bGV0ZWQgYmVoaW5kIG91ciBiYWNrLiAgKi8KIAkgIGlmICghQlVGRkVSUCAody0+Y29udGVudHMp KQotCSAgICBicmVhazsKKwkgICAgZ290byBkZmx0OwogCiAJICBjb250ZXh0ID0gZ2V0X2ltZV9j b250ZXh0X2ZuIChod25kKTsKIAogCSAgaWYgKCFjb250ZXh0KQotCSAgICBicmVhazsKKwkgICAg Z290byBkZmx0OwogCiAJICBzZXRfaW1lX2NvbXBvc2l0aW9uX3dpbmRvd19mbiAoY29udGV4dCwg JmZvcm0pOwogCSAgcmVsZWFzZV9pbWVfY29udGV4dF9mbiAoaHduZCwgY29udGV4dCk7CiAJfQot ICAgICAgYnJlYWs7CisgICAgICBnb3RvIGRmbHQ7CiAKICAgICBjYXNlIFdNX0lNRV9FTkRDT01Q T1NJVElPTjoKICAgICAgIGlnbm9yZV9pbWVfY2hhciA9IDA7Cg== --001a11342dfc8621e0050f462327-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 23:27:46 2015 Received: (at control) by debbugs.gnu.org; 18 Feb 2015 04:27:46 +0000 Received: from localhost ([127.0.0.1]:46875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNwEk-00068w-0U for submit@debbugs.gnu.org; Tue, 17 Feb 2015 23:27:46 -0500 Received: from mail-la0-f54.google.com ([209.85.215.54]:46746) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNwEh-00068j-HY for control@debbugs.gnu.org; Tue, 17 Feb 2015 23:27:43 -0500 Received: by lams18 with SMTP id s18so39899836lam.13 for ; Tue, 17 Feb 2015 20:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=pGrt6jNNUAJXqq69gLmYZJRdbuNDxbE09eHWXSspwKY=; b=YJhqV4X10B/PCfKI7pOkbJN74KByp/5LUZraNmW6hKu2pfVUXwH5V/fMVSsaF3Vdqu PYaLKktiTZXcTtX5/OYVZbawDZ0FZbrokYy4/CJqsr6klTdduopWIz9MBfajAxWbJI4K 3IZlIBrqXivCzxD7FyDLbOxgbhy8f5SaWfVTFE9JUWFm8cLFH433M9RroblDiTeZc1x1 aM8N40WpHrnYe417U3aEvLfFkvMXdErWEb07xsmbJVOMWa0NxXZTUYqvEFqJpnJhwobd gKBMc93NEmSmeAg6cZ+pO/j8gnJzPrLYrcnGUYoz3k3eLB07c4uX1Zu48jzCaax3DfKl JPyA== MIME-Version: 1.0 X-Received: by 10.152.44.137 with SMTP id e9mr32137778lam.100.1424233657755; Tue, 17 Feb 2015 20:27:37 -0800 (PST) Received: by 10.112.64.42 with HTTP; Tue, 17 Feb 2015 20:27:37 -0800 (PST) Date: Wed, 18 Feb 2015 13:27:37 +0900 Message-ID: Subject: From: Fujii Hironori To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 11732 patch [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fujii.hironori[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 11732 patch [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.54 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (fujii.hironori[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid tags 11732 patch From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 10:17:27 2015 Received: (at 11732) by debbugs.gnu.org; 18 Feb 2015 15:17:27 +0000 Received: from localhost ([127.0.0.1]:47888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO6NT-0007ZY-D3 for submit@debbugs.gnu.org; Wed, 18 Feb 2015 10:17:27 -0500 Received: from mtaout25.012.net.il ([80.179.55.181]:50437) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO6NQ-0007ZE-No for 11732@debbugs.gnu.org; Wed, 18 Feb 2015 10:17:25 -0500 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NJZ000003DPNI00@mtaout25.012.net.il> for 11732@debbugs.gnu.org; Wed, 18 Feb 2015 17:11:33 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJZ00L3M3J84M50@mtaout25.012.net.il>; Wed, 18 Feb 2015 17:11:33 +0200 (IST) Date: Wed, 18 Feb 2015 17:17:04 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: X-012-Sender: halo1@inter.net.il To: Fujii Hironori Message-id: <83h9uj5jwv.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 17 Feb 2015 19:26:41 +0900 > From: Fujii Hironori > > WM_IME_STARTCOMPOSITION should be passed to DefWindowProc. Thanks, but can you explain the details? I can understand why we should defer to DefWindowProc if we refrain from processing this message, for some reason. But this last part of your patch: > @@ -3318,17 +3318,17 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) > > /* Punt if the window was deleted behind our back. */ > if (!BUFFERP (w->contents)) > - break; > + goto dflt; > > context = get_ime_context_fn (hwnd); > > if (!context) > - break; > + goto dflt; > > 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? From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 21:04:02 2015 Received: (at 11732) by debbugs.gnu.org; 19 Feb 2015 02:04:02 +0000 Received: from localhost ([127.0.0.1]:48251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOGTC-0007OQ-52 for submit@debbugs.gnu.org; Wed, 18 Feb 2015 21:04:02 -0500 Received: from mail-lb0-f178.google.com ([209.85.217.178]:35371) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOGTA-0007OB-04 for 11732@debbugs.gnu.org; Wed, 18 Feb 2015 21:04:00 -0500 Received: by lbjb6 with SMTP id b6so4907062lbj.2 for <11732@debbugs.gnu.org>; Wed, 18 Feb 2015 18:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uBHLrYuUvFMm4wiyvgkEj84NkRyhMqd+cCAGjz7l7tY=; b=oHU0ehB8TC/PCQ/djkEWwatJ81JXGeO04eRrtNLNxUxIpKv9pS0rd7/1+NEiFKq9bQ uz+cKQpJnfSYKhrm1ZrDANk00HomzPrSu9QO+rQzd7CHTGJMwxt3HAW4qdvoWYLhyEvf WF3F9L8uebrXzX7oQoYdRbYkW59Mgo/SG8QopGn+qfmv+H/FKl+5sCbZGLusWGFgq74a REme5icY5F3zJs73PtRrRJm8Wf9wxUQPs6Lhx/aBLXr2hptiKg8F2VYQC6hXygMhvsH0 Q+aArXUlG3t4Nn/vv2QYm+atmk59nl2OLcOhvr5PWKNg2y2sFdJo8VP3gaZuJnAFdEdw Sftg== MIME-Version: 1.0 X-Received: by 10.152.44.137 with SMTP id e9mr1941793lam.100.1424311438920; Wed, 18 Feb 2015 18:03:58 -0800 (PST) Received: by 10.112.64.42 with HTTP; Wed, 18 Feb 2015 18:03:58 -0800 (PST) In-Reply-To: <83h9uj5jwv.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> Date: Thu, 19 Feb 2015 11:03:58 +0900 Message-ID: Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem From: Fujii Hironori To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thank your for reviewing the patch, Eli. On Thu, Feb 19, 2015 at 12:17 AM, Eli Zaretskii wrote: >> Date: Tue, 17 Feb 2015 19:26:41 +0900 >> From: Fujii Hironori >> >> WM_IME_STARTCOMPOSITION should be passed to DefWindowProc. > > Thanks, but can you explain the details? > > I can understand why we should defer to DefWindowProc if we refrain > from processing this message, for some reason. But this last part of > your patch: > >> @@ -3318,17 +3318,17 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) >> >> /* Punt if the window was deleted behind our back. */ >> if (!BUFFERP (w->contents)) >> - break; >> + goto dflt; >> >> context = get_ime_context_fn (hwnd); >> >> if (!context) >> - break; >> + goto dflt; >> >> 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 19 01:43:53 2015 Received: (at 11732) by debbugs.gnu.org; 19 Feb 2015 06:43:53 +0000 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 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 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) 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) Date: Thu, 19 Feb 2015 08:44:01 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: X-012-Sender: halo1@inter.net.il To: Fujii Hironori 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> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 19 06:44:20 2015 Received: (at 11732-done) by debbugs.gnu.org; 19 Feb 2015 11:44:21 +0000 Received: from localhost ([127.0.0.1]:48414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOPWm-00042J-D5 for submit@debbugs.gnu.org; Thu, 19 Feb 2015 06:44:20 -0500 Received: from mtaout24.012.net.il ([80.179.55.180]:36014) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOPWi-000429-RM for 11732-done@debbugs.gnu.org; Thu, 19 Feb 2015 06:44:18 -0500 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NK000C00NYCBI00@mtaout24.012.net.il> for 11732-done@debbugs.gnu.org; Thu, 19 Feb 2015 13:35:55 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK000CF8O7V7S20@mtaout24.012.net.il>; Thu, 19 Feb 2015 13:35:55 +0200 (IST) Date: Thu, 19 Feb 2015 13:44:29 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: X-012-Sender: halo1@inter.net.il To: Fujii Hironori Message-id: <8361ay3z36.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732-done Cc: 11732-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 19 Feb 2015 19:40:18 +0900 > From: Fujii Hironori > > >> | 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? > > Yes, I am. > > > In that case, how will > > Windows know that the composition window we positioned is "the default > > IME window"? > > I don't understand what this means. > The default IME window is not a composition window, but opens its > composition window. > > In SDK document, there are some hints what the default IME window is. > > https://msdn.microsoft.com/en-us/library/windows/desktop/dd318561(v=vs.85).aspx > > | The operating system creates a default IME window for every > | thread. The window is created based on the IME class. > > https://msdn.microsoft.com/en-us/library/windows/desktop/dd318170(v=vs.85).aspx > > | IME Window Class > | > | The IME window class is a predefined system global class that defines > | the appearance and behavior of the standard IME windows. The class is > | similar to common control classes in that the application creates a > | window of this class by using the CreateWindowEx function. Like static > | controls, an IME window does not respond to user input by > | itself. Instead, it notifies the IME of user input actions and > | processes control messages sent to it by the IME or applications to > | carry out a response to the user action. > > > 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. > > I don't understand what this means. > ImmSetCompositionWindow should be called, of course. > > > 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. > > Current Emacs's IME implementation has this bug. > It's almost imposible to input desired text because of the invisible > composition window. > This patch is nice improvement. Thanks, I installed your change in the development sources, as commit 37e3549, and I'm marking this bug "done". From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 15:29:50 2015 Received: (at 11732) by debbugs.gnu.org; 6 Mar 2015 20:29:50 +0000 Received: from localhost ([127.0.0.1]:37872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTysX-000191-O2 for submit@debbugs.gnu.org; Fri, 06 Mar 2015 15:29:49 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:40230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YTysU-00018i-Pi for 11732@debbugs.gnu.org; Fri, 06 Mar 2015 15:29:48 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NKT007004M7F700@a-mtaout20.012.net.il> for 11732@debbugs.gnu.org; Fri, 06 Mar 2015 22:29:40 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKT007514XFBV60@a-mtaout20.012.net.il>; Fri, 06 Mar 2015 22:29:40 +0200 (IST) Date: Fri, 06 Mar 2015 22:29:43 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: <8361ay3z36.fsf@gnu.org> X-012-Sender: halo1@inter.net.il To: fujii.hironori@gmail.com Message-id: <83pp8lna2w.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> <8361ay3z36.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Thu, 19 Feb 2015 13:44:29 +0200 > From: Eli Zaretskii > Cc: 11732-done@debbugs.gnu.org > > Thanks, I installed your change in the development sources, as commit > 37e3549, and I'm marking this bug "done". Unfortunately, it looks like that change has a devastating effect on dialog boxes. Try clicking File->Open File, and then click anywhere inside the file selection dialog that opens: the dialog will disappear from the display! Can you suggest how to fix this new problem? If we cannot find a solution, I'm afraid we will have to revert that commit. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 06 17:38:06 2015 Received: (at 11732) by debbugs.gnu.org; 6 Mar 2015 22:38:06 +0000 Received: from localhost ([127.0.0.1]:37941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU0sf-0004Kb-Om for submit@debbugs.gnu.org; Fri, 06 Mar 2015 17:38:06 -0500 Received: from mail-lb0-f175.google.com ([209.85.217.175]:34759) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU0sd-0004K4-Aq for 11732@debbugs.gnu.org; Fri, 06 Mar 2015 17:38:03 -0500 Received: by lbvn10 with SMTP id n10so6695187lbv.1 for <11732@debbugs.gnu.org>; Fri, 06 Mar 2015 14:37:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LEYM35le7AcFHgQb7UoG8qBlUu0NrevbyyHV/H7a1jk=; b=eAVQSLJ+odhV4Exkibvd+GEX3Y85NKK+I/4SCVe57DyyaYtOj8VAFj0RbhnAjuPkYZ QMQgO485A2sAClXLhdkJqbJ2INTNaEmnOBPHQMi05FUO6mncRywUTiPUglDsa1gkhz7v dvVKqvbKToh49WYoXzV0Lc2xeNZinx3qPkO89I1p8UFbs23I3T/MEqoQY1U+5Y8gX/Sk YkXmDpULYoa8aN4ytITpZuoGqq98gjo4OC046prBKV+KFVMxlDHtJnlGkDY0rI4tyEDF 9DB3LL45Q9WMvj/PMXerOhosaI+zZKzW3GNMZx7D7hioOdPwvy4sE/rG4Ouzzszx1mHs EKQg== MIME-Version: 1.0 X-Received: by 10.112.147.200 with SMTP id tm8mr14770158lbb.71.1425681477294; Fri, 06 Mar 2015 14:37:57 -0800 (PST) Received: by 10.112.10.164 with HTTP; Fri, 6 Mar 2015 14:37:57 -0800 (PST) Received: by 10.112.10.164 with HTTP; Fri, 6 Mar 2015 14:37:57 -0800 (PST) In-Reply-To: <83pp8lna2w.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> <8361ay3z36.fsf@gnu.org> <83pp8lna2w.fsf@gnu.org> Date: Sat, 7 Mar 2015 07:37:57 +0900 Message-ID: Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem From: Fujii Hironori To: Eli Zaretskii Content-Type: multipart/alternative; boundary=047d7b3a8966045fdc0510a656b3 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7b3a8966045fdc0510a656b3 Content-Type: text/plain; charset=UTF-8 I'm sorry. i'll investigate the problem. But, no time now. Please revert it. 2015/03/07 5:29 "Eli Zaretskii" : > > Date: Thu, 19 Feb 2015 13:44:29 +0200 > > From: Eli Zaretskii > > Cc: 11732-done@debbugs.gnu.org > > > > Thanks, I installed your change in the development sources, as commit > > 37e3549, and I'm marking this bug "done". > > Unfortunately, it looks like that change has a devastating effect on > dialog boxes. Try clicking File->Open File, and then click anywhere > inside the file selection dialog that opens: the dialog will disappear > from the display! > > Can you suggest how to fix this new problem? If we cannot find a > solution, I'm afraid we will have to revert that commit. > > Thanks. > --047d7b3a8966045fdc0510a656b3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I'm sorry. i'll investigate the problem. But, no tim= e now. Please revert it.

2015/03/07 5:29 "Eli Zaretskii" <eliz@gnu.org>:
> Date: Thu, 19 Feb 2015 13:44:29 +0200<= br> > From: Eli Zaretskii <eliz@gnu.org>
> Cc:
11732-done@debbugs.g= nu.org
>
> Thanks, I installed your change in the development sources, as commit<= br> > 37e3549, and I'm marking this bug "done".

Unfortunately, it looks like that change has a devastating effect on
dialog boxes.=C2=A0 Try clicking File->Open File, and then click anywher= e
inside the file selection dialog that opens: the dialog will disappear
from the display!

Can you suggest how to fix this new problem?=C2=A0 If we cannot find a
solution, I'm afraid we will have to revert that commit.

Thanks.
--047d7b3a8966045fdc0510a656b3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 07 05:53:27 2015 Received: (at 11732) by debbugs.gnu.org; 7 Mar 2015 10:53:27 +0000 Received: from localhost ([127.0.0.1]:38147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUCMJ-00088Y-8I for submit@debbugs.gnu.org; Sat, 07 Mar 2015 05:53:27 -0500 Received: from mtaout28.012.net.il ([80.179.55.184]:57954) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUCMG-00088K-BT for 11732@debbugs.gnu.org; Sat, 07 Mar 2015 05:53:25 -0500 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NKU006008I2UD00@mtaout28.012.net.il> for 11732@debbugs.gnu.org; Sat, 07 Mar 2015 12:51:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKU004EB8U9I330@mtaout28.012.net.il>; Sat, 07 Mar 2015 12:51:45 +0200 (IST) Date: Sat, 07 Mar 2015 12:53:16 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: X-012-Sender: halo1@inter.net.il To: Fujii Hironori Message-id: <8361adm63n.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> <8361ay3z36.fsf@gnu.org> <83pp8lna2w.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sat, 7 Mar 2015 07:37:57 +0900 > From: Fujii Hironori > Cc: 11732@debbugs.gnu.org > > I'm sorry. i'll investigate the problem. But, no time now. Please revert it. Thanks, I reverted only the part of the change that passed the message to DefWindowProc if handling of WM_IME_STARTCOMPOSITION was successful. That seems to fix the problem with selection dialogs. I will reopen the bug to show that it is not yet fixed. From unknown Thu Aug 14 17:25:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Sat, 07 Mar 2015 10:55:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 08 22:13:51 2015 Received: (at 11732) by debbugs.gnu.org; 9 Mar 2015 02:13:51 +0000 Received: from localhost ([127.0.0.1]:39936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUnCZ-0008Ho-Ef for submit@debbugs.gnu.org; Sun, 08 Mar 2015 22:13:51 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:45728) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUnCX-0008Ha-KO for 11732@debbugs.gnu.org; Sun, 08 Mar 2015 22:13:50 -0400 Received: by lamq1 with SMTP id q1so4060365lam.12 for <11732@debbugs.gnu.org>; Sun, 08 Mar 2015 19:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZNry8w78Fq1sVID56M+kmWkN3Tv8p00cwBwyzJBhOsQ=; b=rZWb/tLoprJGvThHBXGFOQr973wpiCq1LriyB3fRqaoqH2fczBedXsxgGS8RfsDHKR 7v0f1CzHUlZWKAAoGPBQramzmGA7wLOZE3ueBvjht3InrjxhcJ0JMHSs2YmwlqF35oFn bQ/9UOxohPuiOzCj9WF6/zpnK3Rtg7ZljI8ZygyyJx/KSIR3PhRRgTFpcVjVZR7cloJr Pxa1cDEmBDX0QZqM/jmtSrcFOePWZCk9vpqk+IW91mSsBJZbiEkt3dOJD2fCRZdhc+hB DBvNTjb2aIBLCe4sRsNf5Zre7fv3TyUkwQSoEyJ4u6RW4LLeHQ2o5Ik6tDCAykQ7KkXt dq/w== MIME-Version: 1.0 X-Received: by 10.112.29.211 with SMTP id m19mr23732715lbh.100.1425867223911; Sun, 08 Mar 2015 19:13:43 -0700 (PDT) Received: by 10.112.10.164 with HTTP; Sun, 8 Mar 2015 19:13:43 -0700 (PDT) In-Reply-To: <83pp8lna2w.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> <8361ay3z36.fsf@gnu.org> <83pp8lna2w.fsf@gnu.org> Date: Mon, 9 Mar 2015 11:13:43 +0900 Message-ID: Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem From: Fujii Hironori To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Sat, Mar 7, 2015 at 5:29 AM, Eli Zaretskii wrote: > Unfortunately, it looks like that change has a devastating effect on > dialog boxes. Try clicking File->Open File, and then click anywhere > inside the file selection dialog that opens: the dialog will disappear > from the display! I don't see such problem. I'm testing on Windows 7. Could you tell me your Windows version. This is my environment: In GNU Emacs 25.0.50.2 (x86_64-unknown-cygwin) of 2015-03-09 on win7-pc Repository revision: 6b134bcba9de5605086ee9382c0be13174480cac Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/cygdrive/c/home/fujii/opt/emacs --with-w32' I applied a following patch to test: diff --git a/src/w32fns.c b/src/w32fns.c index 6abb433..685d30c 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3330,7 +3330,7 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) dialog boxes, such as the file selection dialog or font selection dialog. So something else is needed to fix the former without breaking the latter. See bug#11732. */ - break; + goto dflt; case WM_IME_ENDCOMPOSITION: ignore_ime_char = 0; From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 09 12:30:29 2015 Received: (at 11732) by debbugs.gnu.org; 9 Mar 2015 16:30:29 +0000 Received: from localhost ([127.0.0.1]:40880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV0ZZ-0006Wj-04 for submit@debbugs.gnu.org; Mon, 09 Mar 2015 12:30:29 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:53893) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YV0ZW-0006WW-6d for 11732@debbugs.gnu.org; Mon, 09 Mar 2015 12:30:27 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NKY00B00DQD7000@a-mtaout20.012.net.il> for 11732@debbugs.gnu.org; Mon, 09 Mar 2015 18:30:19 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKY00BXBDUJ6U00@a-mtaout20.012.net.il>; Mon, 09 Mar 2015 18:30:19 +0200 (IST) Date: Mon, 09 Mar 2015 18:30:07 +0200 From: Eli Zaretskii Subject: Re: bug#11732: 24.1; Microsoft IME Japanese input problem In-reply-to: X-012-Sender: halo1@inter.net.il To: Fujii Hironori Message-id: <83lhj65e28.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83h9uj5jwv.fsf@gnu.org> <83k2ze4czy.fsf@gnu.org> <8361ay3z36.fsf@gnu.org> <83pp8lna2w.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 9 Mar 2015 11:13:43 +0900 > From: Fujii Hironori > Cc: 11732@debbugs.gnu.org > > On Sat, Mar 7, 2015 at 5:29 AM, Eli Zaretskii wrote: > > Unfortunately, it looks like that change has a devastating effect on > > dialog boxes. Try clicking File->Open File, and then click anywhere > > inside the file selection dialog that opens: the dialog will disappear > > from the display! > > I don't see such problem. I'm testing on Windows 7. > Could you tell me your Windows version. I originally saw this on 32-bit XP, but now tried on 64-bit Windows 7, and I see the same problem there. So I don't think the Windows version is a factor here. > This is my environment: > > In GNU Emacs 25.0.50.2 (x86_64-unknown-cygwin) > of 2015-03-09 on win7-pc > Repository revision: 6b134bcba9de5605086ee9382c0be13174480cac > Windowing system distributor `Microsoft Corp.', version 6.1.7601 > Configured using: > `configure --prefix=/cygdrive/c/home/fujii/opt/emacs --with-w32' You are using a 64-bit Cygwin-w32 build. I'm using a 32-bit MinGW build: In GNU Emacs 25.0.50.232 (i686-pc-mingw32) of 2015-03-07 on HOME-C4E4A596F7 Repository revision: 35e2b6ab4d28547ec079de18cf1cf65623e6909a Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB So either the way Cygwin implements reading of Windows messages from /dev/windows, or the 64- vs 32-bit difference, is somehow responsible for the differences in behavior. Yet another difference is that I compiled without optimizations, but I doubt if that could cause such an effect. > I applied a following patch to test: > > diff --git a/src/w32fns.c b/src/w32fns.c > index 6abb433..685d30c 100644 > --- a/src/w32fns.c > +++ b/src/w32fns.c > @@ -3330,7 +3330,7 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM > wParam, LPARAM lParam) > dialog boxes, such as the file selection dialog or font > selection dialog. So something else is needed to fix the > former without breaking the latter. See bug#11732. */ > - break; > + goto dflt; Me too. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 24 01:31:16 2016 Received: (at control) by debbugs.gnu.org; 24 Feb 2016 06:31:16 +0000 Received: from localhost ([127.0.0.1]:42348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSyi-0002B4-Be for submit@debbugs.gnu.org; Wed, 24 Feb 2016 01:31:16 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:42137) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSyh-0002Ax-4k for control@debbugs.gnu.org; Wed, 24 Feb 2016 01:31:15 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYSyK-0003LB-NO for control@debbugs.gnu.org; Wed, 24 Feb 2016 07:30:53 +0100 Date: Wed, 24 Feb 2016 17:30:48 +1100 Message-Id: <87ziuqbox3.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11732 X-MailScanner-ID: 1aYSyK-0003LB-NO X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456900253.60436@T5k0pXkGIPA2cypF7CBjAg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 11732 - patch From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 26 11:11:52 2018 Received: (at 11732) by debbugs.gnu.org; 26 Jun 2018 15:11:52 +0000 Received: from localhost ([127.0.0.1]:36379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXpdH-0001Kc-DS for submit@debbugs.gnu.org; Tue, 26 Jun 2018 11:11:52 -0400 Received: from mail-vk0-f44.google.com ([209.85.213.44]:39039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXjzp-0007Lg-Jh for 11732@debbugs.gnu.org; Tue, 26 Jun 2018 05:10:46 -0400 Received: by mail-vk0-f44.google.com with SMTP id n81-v6so3507296vke.6 for <11732@debbugs.gnu.org>; Tue, 26 Jun 2018 02:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=I/wcKv4trauoSAEqHWpT9ERzK1ZsOa231nh0kzjSkpI=; b=fRDV9D2P9OaHImXgCppMfEhP7xh8mjNAK/N/xGShyovqXx2xnh6pT8FnHf9jUqlcMn Dq21IhMnj1VzG5aAkdEr0mKaN4KbbI00ZBEy4cJqxWiQvFEjbruDDlEmfMytQqtak6tO utwdP6XOW/jU/IPonFNGZanJcV0bP/eiTr+P1UpAYARY9ed76xza5rkgnyxKyHcBZ8ey BrGfdwNZpF1hC3oEn5rIdQOBQ5taEs8mcdThgvAKc6eu/nRfZMAaxQayoV3UCEo38RwF iR9BSToxGPykVd46zhhP9ADoy2M7+V8aYG5b5qJ269l5QeTL3YBqkJi+1IMGCyBf+aPC 6gNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=I/wcKv4trauoSAEqHWpT9ERzK1ZsOa231nh0kzjSkpI=; b=EK8IczFiQ1IUNYcDEtwKRUbc4X7zw6wLNn+vQIJ60D1f/iNElHwMNeNwvas+ZRBhmE 1O4Qsgg8gh35RE6JSsfDGuzYX3qsv8QlW4WPggACqP06wO6/r9C266t0gkQIRctW3r1Y B+uguYQV0eSN2+SvQ3geihAt1mEkx0XLlAItk1Y1ISsiLX8pxiuRYp+5zWbyuKMBeFVD ka2BVGZq3/aVuzXGh9S8WBrhWU1broBNfHD+gBjh/9xINOQZTGLqvC6o6igSQ9H4g+TR dZr5Gj706hN5sqrZ3bxrlBc2rAy0L+5EH4IlvO4fS3/VJ81Etvy+zrYco9aO0mlEfZzZ rDUw== X-Gm-Message-State: APt69E0M75ns0Z2Ec8AxDFJu23ydM4n4roQQ/0kkG7NvzV1pMG92q3qd Yg8gUOxk1PGXS7o55F7Ot53dObc8ZOMxk7xRAsf5EbFu X-Google-Smtp-Source: AAOMgpdvWgyy89pndpHy21ruMGdQ9P4I3aUqrwALMJ5T77JvVw4hVO30+pTL7nDf2+sU2+GUMnCdkfRw1lhrmE78kMM= X-Received: by 2002:a1f:fccc:: with SMTP id a195-v6mr374439vki.109.1530004239580; Tue, 26 Jun 2018 02:10:39 -0700 (PDT) MIME-Version: 1.0 From: Masayuki Hatta Date: Tue, 26 Jun 2018 18:10:26 +0900 Message-ID: Subject: Follow-up to bug#11732 To: 11732@debbugs.gnu.org Content-Type: multipart/mixed; boundary="00000000000034ce55056f87dfd0" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 X-Mailman-Approved-At: Tue, 26 Jun 2018 11:11:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000034ce55056f87dfd0 Content-Type: text/plain; charset="UTF-8" Hi! Recently I built Emacs 26.1 on Windows 10 (w/ MSYS2 64bit) with the patch as mentioned earlier. It works as expected and seems to bring no lousy side effects anymore. This problem has been making Emacs on Windows almost unusable for Japanese users (so most of them use their patched binary). Thus I appreciate if you apply the patch again. Best regards, MH ----- What I did: Following the instruction in INSTALL.W64 almost verbatim, using the latest (as of Jun. 26, 2018) MSYS2 64bit on Windows 10 Pro 1803. Applied the attached patch (this is against 26.1, but I am pretty sure you can apply it to HEAD) and build. Tested with "File -> Open File" dialog and "(w32-font-select)" dialog. Both seem to work. Also tested with Microsoft IME, ATOK 2017, Google Japanese Input and SKKFEP (those are popular Japanese input system for Windows). Please let me know if you want me to do additional info, tests, etc. -- Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp --00000000000034ce55056f87dfd0 Content-Type: application/octet-stream; name=diff Content-Disposition: attachment; filename=diff Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jivh0bta0 ZGlmZiAtdXJOIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMgZW1hY3MtMjYuMS9zcmMvdzMy Zm5zLmMKLS0tIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMJMjAxOC0wNi0yMiAyMToxOTo0 OS40NzY4Nzk0MDAgKzA5MDAKKysrIGVtYWNzLTI2LjEvc3JjL3czMmZucy5jCTIwMTgtMDYtMjYg MTg6MDA6NTQuNzgwNjYxNjAwICswOTAwCkBAIC00NTUxLDcgKzQ1NTEsNyBAQAogCSBkaWFsb2cg Ym94ZXMsIHN1Y2ggYXMgdGhlIGZpbGUgc2VsZWN0aW9uIGRpYWxvZyBvciBmb250CiAJIHNlbGVj dGlvbiBkaWFsb2cuICBTbyBzb21ldGhpbmcgZWxzZSBpcyBuZWVkZWQgdG8gZml4IHRoZQogCSBm b3JtZXIgd2l0aG91dCBicmVha2luZyB0aGUgbGF0dGVyLiAgU2VlIGJ1ZyMxMTczMi4gICovCi0g ICAgICBicmVhazsKKyAgICAgIGdvdG8gZGZsdDsKIAogICAgIGNhc2UgV01fSU1FX0VORENPTVBP U0lUSU9OOgogICAgICAgaWdub3JlX2ltZV9jaGFyID0gMDsK --00000000000034ce55056f87dfd0-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 26 11:11:26 2018 Received: (at control) by debbugs.gnu.org; 26 Jun 2018 15:11:26 +0000 Received: from localhost ([127.0.0.1]:36375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXpcs-0001Jw-0q for submit@debbugs.gnu.org; Tue, 26 Jun 2018 11:11:26 -0400 Received: from mail-vk0-f51.google.com ([209.85.213.51]:44358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXnQK-00067E-L3 for control@debbugs.gnu.org; Tue, 26 Jun 2018 08:50:21 -0400 Received: by mail-vk0-f51.google.com with SMTP id x4-v6so9930309vkx.11 for ; Tue, 26 Jun 2018 05:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=NoAva5EBTEMzk0IY0M7Yb4HAj/l6/kMmQmICXiDj1tY=; b=u87+7Fd3/M9TKjl4TsxGmzVVazanlaY6lAnvmBedSfVb1xPQE3/JtACgFAxtnzVn2R eGRU6sf7ucnrSLJlMmmG9nbd/GuC2k+banyQgszmW17LpQV456Cn9d/JHA3M0dtPELr+ MpjkNUZtiRsX5b1NTO1+05g5I+h3J5a0W+/0IM0lTWU49mBq77QtmZg9ueidtAugI085 3oMhIJfdHgT7EL/4n6g2xZ7zkUUWQDORUOw9N//YoOOH0nrELY19JpC/2KiZ5bTYuYT6 7cyc85TGNuV/CwxbVftlRRVduOpG+5oht8gNSwU7OutchOSbIaajabm+RUz1735TWonu F6cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NoAva5EBTEMzk0IY0M7Yb4HAj/l6/kMmQmICXiDj1tY=; b=o6m6voybsRboyWypuyM3scuWYEglS6HZK5G1IpM+/zo/BDBELJ0i+xFJN5GBDIZQ9M Iz8pPLRyu1gLzyvhdVYz49+WErrnXvHvS1+cmo6Hnb/UcCRVh+UW6U0G8lQsD7dOk+DJ mRdhAirLOMDbPiJdc2t9k+UTzwDBPaU6DcqARJinI5Z1yAPjWEWMTNW1etKlUE/Rtfw5 G7R6hCo+dEZ4SsEq8k9bWSOEsYGkjXWcbju+MkoH8AzsRrbchLIEPmyyTZLlM7+vjJ8D VLL6ReCH3v1PK1NMnmq12tznMrm3ZD2cRpiLFtrbZ8IdKIV6HQaUFVSIvIoEe4M2ZZEa 0A8w== X-Gm-Message-State: APt69E0lQaUoA4hl1jEK0kMSR4L1wHAqIjDJsUuY/LF/pYi01zEcHeNN eouVeJweJHfhang253IL8kElL0+mWlGWoSIzMdvrOMWE X-Google-Smtp-Source: AAOMgpdxHYTo+cJWbontXPq9lMsx7VGfS20wIEHXagYmtOQtDbaKiz2DpdV2IpzDxn11/cz3aPQ01NC93gBJr5urr7Q= X-Received: by 2002:a1f:95c2:: with SMTP id x185-v6mr874845vkd.75.1530017414846; Tue, 26 Jun 2018 05:50:14 -0700 (PDT) MIME-Version: 1.0 From: Masayuki Hatta Date: Tue, 26 Jun 2018 21:50:03 +0900 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 11732 reassign emacs 26.1 retitle 11732 Japanese IME input problem on Windows tags 11732 patch thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mhatta[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.213.51 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: control X-Mailman-Approved-At: Tue, 26 Jun 2018 11:11:24 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) unarchive 11732 reassign emacs 26.1 retitle 11732 Japanese IME input problem on Windows tags 11732 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 26 11:11:52 2018 Received: (at control) by debbugs.gnu.org; 26 Jun 2018 15:11:52 +0000 Received: from localhost ([127.0.0.1]:36381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXpdI-0001Km-5Z for submit@debbugs.gnu.org; Tue, 26 Jun 2018 11:11:52 -0400 Received: from mail-vk0-f45.google.com ([209.85.213.45]:46790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fXk2h-0007Py-7e for control@debbugs.gnu.org; Tue, 26 Jun 2018 05:13:43 -0400 Received: by mail-vk0-f45.google.com with SMTP id b134-v6so9567606vke.13 for ; Tue, 26 Jun 2018 02:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=US6rNPEDhnvBdsswRGhbGWGUnQnW6YossUJ+jb9MKH8=; b=L6G/eYJCvyrvYMhvH0xXNstB7O8AkIWYdP7aYd+FgYz2O/HRoWjiCEer5Vvx5Rb8gi WWJ7zo66bOHCQ18XaktiSRCUCSjMDDhMLo9n8dIv8Vrnoxxx0CetgEQVSeM2Di7iTGq8 YzhM3vDQWFVeSWzPF44WgTSGs0VM5rpl9/jXwVj821WDq4jYnyqEKsD4FCwY7lYxEXDE eco23P9626AtQlVi43qDEb8at37+F0e0IfciEOdQekCNMWPHlj8BoQ+WKlGFA2nwtx6L MWPhqzwgULZgZam73FvjbiC3RtrapUxgldF6mZxLWMg54tG2RtmYovKg0+2kuJTjsQPL rpDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=US6rNPEDhnvBdsswRGhbGWGUnQnW6YossUJ+jb9MKH8=; b=ANExAY8qtazcTob4pn8yUs5z7t+ZhUg4aElv9hIqWndYQnbdIimGXaVmYvuYyfWSzA wzbbCEesqnLFdXVKR8dUyrre+bFvsvX3R1Vgv8kANJq09Oli7oGqfwP5qNuRbNmiAJgl sKaBx1BjGR1fjvgHw5a9d9QWi9IsHg2U49xwVdbPUcSKvPomKEkZzqpLFLV1XPV0XQ+O IwyDeocXvalYS81GhBA3mO4SCc2DcbX2+FfTpkXoRO91g3U+YqKDIRmv4W69x5YV9xQ+ oPrBFJUPAl+00K0IKO9gsOWlabpN6qgYcAs2qZlMdVJj0OKbOKDPvDAfl/md18k7nPwT +fbQ== X-Gm-Message-State: APt69E0Pea3bJN+PjOzzCbrbUMLBvfcFdZv/xvXvVMPSmOBq1DHOomlz SZXMW9JnW/bv4SVKakSFIe+dZUwCcHQOJkmSsZoc7w== X-Google-Smtp-Source: AAOMgpfR6zFaIJmJ+aPK7uWz9AnKTbch2rGemdKcpOhAxMk7D3aITsHr+9IVck+sELXqpZNvATRUH2xXdCpnmtLOgUE= X-Received: by 2002:a1f:95c2:: with SMTP id x185-v6mr403347vkd.75.1530004417637; Tue, 26 Jun 2018 02:13:37 -0700 (PDT) MIME-Version: 1.0 From: Masayuki Hatta Date: Tue, 26 Jun 2018 18:13:25 +0900 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: retitle 11732 26.1; Japanese IME input problem on Windows tags 11732 patch thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mhatta[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.213.45 listed in list.dnswl.org] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control X-Mailman-Approved-At: Tue, 26 Jun 2018 11:11:49 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) retitle 11732 26.1; Japanese IME input problem on Windows tags 11732 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 27 11:54:15 2018 Received: (at 11732) by debbugs.gnu.org; 27 Jun 2018 15:54:15 +0000 Received: from localhost ([127.0.0.1]:37828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYClq-0002KL-Mc for submit@debbugs.gnu.org; Wed, 27 Jun 2018 11:54:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYClm-0002K6-Li for 11732@debbugs.gnu.org; Wed, 27 Jun 2018 11:54:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYCld-0007lN-9P for 11732@debbugs.gnu.org; Wed, 27 Jun 2018 11:54:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYClc-0007kc-W3; Wed, 27 Jun 2018 11:54:01 -0400 Received: from [176.228.60.248] (port=4149 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYClc-0002CO-CX; Wed, 27 Jun 2018 11:54:00 -0400 Date: Wed, 27 Jun 2018 18:54:04 +0300 Message-Id: <83y3f0p6n7.fsf@gnu.org> From: Eli Zaretskii To: Masayuki Hatta , martin rudalics In-reply-to: (message from Masayuki Hatta on Tue, 26 Jun 2018 18:10:26 +0900) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Masayuki Hatta > Date: Tue, 26 Jun 2018 18:10:26 +0900 > > Recently I built Emacs 26.1 on Windows 10 (w/ MSYS2 64bit) with the > patch as mentioned earlier. It works as expected and seems to bring > no lousy side effects anymore. > > This problem has been making Emacs on Windows almost unusable for > Japanese users (so most of them use their patched binary). Thus I > appreciate if you apply the patch again. > > Tested with "File -> Open File" dialog and "(w32-font-select)" dialog. > Both seem to work. By "work", do you mean that clicking on anywhere inside these dialogs leaves the dialogs visible? On 2 different systems where I tried this, after applying the patch, clicking anywhere in the dialog box after it opens causes the dialog box to disappear: it is moved in z order behind the frame from which the dialog was started. It's possible that this is somehow related to the fact that I have my Windows systems configured to enable "active window tracking" (a.k.a. "focus follows mouse"), but even so, I'd like to be able to avoid that adverse side effect on systems that are so configured. Martin, could you perhaps look into this? I tried various "solutions", and the best I could come up with is the patch below. If it looks right to you (I'm really out of my depth here), then how do we solve a similar problem in x-select-font? It doesn't have a callback function, and if I try adding one, the appearance of the dialog changes(??) and the OK and CANCEL buttons no longer work. Also, w32_dialog_in_progress seems to try to solve some similar problem, but is not really working? I guess I simply don't understand why the dialog is lowered when I click on it. Here's the patch for file_dialog_callback I came up with: --- src/w32fns.c~ 2018-06-11 06:32:21.000000000 +0300 +++ src/w32fns.c 2018-06-27 18:22:27.104228200 +0300 @@ -7520,6 +7520,12 @@ file_dialog_callback (HWND hwnd, UINT ms HWND list = GetDlgItem (dialog, FILE_NAME_LIST); int hdr_code; + SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE + | SWP_NOOWNERZORDER); + SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), + dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); + /* At least on Windows 7, the above attempt to get the window handle to the File Name Text Field fails. The following code does the job though. Note that this code is based on my examination of the From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 04:04:45 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 08:04:45 +0000 Received: from localhost ([127.0.0.1]:38149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYRv3-0006L2-G4 for submit@debbugs.gnu.org; Thu, 28 Jun 2018 04:04:45 -0400 Received: from mout.gmx.net ([212.227.17.21]:50179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYRv2-0006Kp-LM for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 04:04:45 -0400 Received: from [192.168.1.101] ([212.95.5.19]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lqn7e-1g3djQ0MLa-00eLKc; Thu, 28 Jun 2018 10:04:38 +0200 Message-ID: <5B34968C.5060103@gmx.at> Date: Thu, 28 Jun 2018 10:04:28 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Masayuki Hatta Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> In-Reply-To: <83y3f0p6n7.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:LEPtS8KcpyOQC4Sa1Mv1M54Jn/4SK0l83QDsomoGeOyf7kUoFB9 cxEFF1KkJXMszNIptE0jZSKWJ+pNV93PuwyHEHoyKM7sQkUDycwOTq4DxX6KSngIx4S+NTr cSS6johzbccnLEub2SPZVc8T3ktKGIdnmD443YS++Ot0PwX4kNQh1U+E+jJTaJ441r1nYIS urHKjcGFIThgEd10wHvqQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:2xBus99LXVU=:0z9hPE1aEcmXo95fDAvBPt Esdcx5Jt+3PNBNFiM9moDcv0DQOuhNPDKv+A9/HI46iCMrJfja/uf+ERPMxq3uPYoX+95Atr7 WPa4xEnM018arzxgQcl9EKPv1afS8mnJIUOIVjndSB9oo/DYB2EXhZq1KZ22KGJK1Oboxah0F yOkYLPQ5Abc7HNghKokpM2pawRXTffjIJ4/Mr7nKZHju/h/dLmPzx5C3nZdq5mG17XFbrdb6i 3RlbCk9b2nsjoDx4KHqkoJHdvqIPjThaDPo6yFljsXShyTpYAaxOXrKmaxW5keDmx4DgXy2ip h/uBMOCR5goHuoTOyC8pb3oJ754Rf0D72ra0KsWfcVA/VSgEmmMRModE4ZprNZNQvtA3lSHG7 o0IQ0EMf+3FIh9No3aeiBpkbjQlj1az8+wiwSFWFRxeGQqA0n3HeQp0t8zkl2+IlyAmE+n50m 9hSRhV97s9GybI0Zj1/Extz4iuviNNBacSb5Lv7b332W9vokLGHln4wtutvA5n71VvQCBrT1d AiGfZx9l/CIG53aNMK1P4h7pnxSoc5a68MGAIubacyfp8mex2vFrf3SsFA/4VCJRvITRudTQj yeDY4b5c9Jy3b6bQ4nywjLHybaPy09fVgg6FEi99A+Zd8LXvH7run5emYq64u0d9pshOehpVo 4Xcol/KzlQGFRNMPTfdxhXRR1DbtkuNaNr3Ul5hS13i/7uPZfFdYeeafgv2xL70d1l7u7HkPL 3w7yOC5G0xJqwpnnVfSyTD5/Afpi91dA3HcOKGqUSaKULbC5AmQ8wMwfRyg3zMqypY3hjCn5d J6slaqN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Martin, could you perhaps look into this? I'm afraid I won't be of much help in this matter. IIUC there is a patch I have to apply first and that patch breaks interaction with dialog boxes on Windows in some way. Which one is the patch I have to apply? martin From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 06:11:34 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 10:11:34 +0000 Received: from localhost ([127.0.0.1]:38192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYTti-00018O-Tx for submit@debbugs.gnu.org; Thu, 28 Jun 2018 06:11:34 -0400 Received: from mail-ua0-f169.google.com ([209.85.217.169]:37655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYTth-00018A-FM for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 06:11:29 -0400 Received: by mail-ua0-f169.google.com with SMTP id c2-v6so3192560uae.4 for <11732@debbugs.gnu.org>; Thu, 28 Jun 2018 03:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tztIQulOWEKjO1aOkyY/uCZ/uc9tyX6h7IOLMRpx7RM=; b=owhR3igR2Uxi0HZI4tsTSmQ/4JGXyMfrxE+TVRmaMoNyF0K3qzP6iPo1QgBaaRSRPX HzNM+bIm0qNUaVOeOjNMZ1FO1qUNAnEzJuGz61L/8K2DNzBo9AsPZeSI2wN+18fp0V4m jXtWaNPSG/x/mPBqwZYKJwdABfNna2rsL/toelWqxvN6pkPdMOW+R+BPm3jsAKQOBgu7 XnG3v8LNW9EABJEbohHFuTS6V/rxg65kTq4bCxW8mlos57w8QYv3IxPtBwnvVu0GwZqD wudWNd/jlF5oSHwNtCHTLk9nsk11/W8IFV3EY7+eO7pvH/35TTGsTktbni3Jt8ZEYh+L RBQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tztIQulOWEKjO1aOkyY/uCZ/uc9tyX6h7IOLMRpx7RM=; b=PSxVGmyKyD1CGPGkHrhbyjQHWauXZfeGn1mLtQ/XFg0EpK2qpmNohwRGm2b1gDF7Sg t5neMuT44H/R57n9nqHGs++++O9u4lttqTr36WffW+bhDyJg6SildhkCDxsEpu7TranJ QTq2DZ18Y8cMpHopJPAiLMawDbGKwuMYkEFIBYynqLAVURu2NFRyo9IgjsfdExPoKTff rjLWqIr/dh12+Yt6NXO3CMxI5DjS5xPkOuSgQL5sCQ9z3WelV7kJMWB6Z3qonCgePsCF POh8h6u/ifbf362QyK6KvaqHtbwIfYOqrZqbUslz4cv9HwxpQHGlKDy7gKS627jatGhW MycQ== X-Gm-Message-State: APt69E3s+8Ce9eSnSj+Va/6tafsFICPCVrZkggc7qrazR29jrtCU+/zC zt7FecJPf7iaGVb31vJPvgKRiyPAYSzDxXK7E18= X-Google-Smtp-Source: AAOMgpcEkmxGFGbghC4vI4ErdhNeZaLrhVtdD93Gf33L3eEzFvHCuq9epuii2hnHYNeDc3DLkSNlB2+3G2aII8mqpUQ= X-Received: by 2002:ab0:b:: with SMTP id 11-v6mr2814579uai.19.1530180683714; Thu, 28 Jun 2018 03:11:23 -0700 (PDT) MIME-Version: 1.0 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> In-Reply-To: <83y3f0p6n7.fsf@gnu.org> From: Masayuki Hatta Date: Thu, 28 Jun 2018 19:11:10 +0900 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: eliz@gnu.org Content-Type: multipart/mixed; boundary="0000000000001873f0056fb0f4e0" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: rudalics@gmx.at, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000001873f0056fb0f4e0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, thanks for your reply! 2018=E5=B9=B46=E6=9C=8828=E6=97=A5(=E6=9C=A8) 0:54 Eli Zaretskii : > > Tested with "File -> Open File" dialog and "(w32-font-select)" dialog. > > Both seem to work. > > By "work", do you mean that clicking on anywhere inside these dialogs > leaves the dialogs visible? Yes, I was clicking around inside the dialog. I made an animated GIF from screen capture. Its size is around 8MB, so I won't attach it to this mail. Please see: https://www.mhatta.org/test.gif Also, I made a basically-the-same-but-a-bit-different patch. In this "diff2", I preserved break. I don't think it changes anything, though... > It's possible that this is somehow related to the fact that I have my > Windows systems configured to enable "active window tracking" > (a.k.a. "focus follows mouse"), but even so, I'd like to be able to > avoid that adverse side effect on systems that are so configured. Could you tell me how to set up "active windows tracking" on Windows 10? I could find some information on the Net, but still not sure how to do. Best regards, MH -- Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp --0000000000001873f0056fb0f4e0 Content-Type: application/octet-stream; name=diff2 Content-Disposition: attachment; filename=diff2 Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jiye1nxi0 ZGlmZiAtdXJOIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMgZW1hY3MtMjYuMS9zcmMvdzMy Zm5zLmMKLS0tIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMJMjAxOC0wNi0yMiAyMToxOTo0 OS40NzY4Nzk0MDAgKzA5MDAKKysrIGVtYWNzLTI2LjEvc3JjL3czMmZucy5jCTIwMTgtMDYtMjgg MTc6NTU6NDguMjM3ODAyOTAwICswOTAwCkBAIC00NTQ0LDYgKzQ1NDQsNyBAQAogCiAJICBzZXRf aW1lX2NvbXBvc2l0aW9uX3dpbmRvd19mbiAoY29udGV4dCwgJmZvcm0pOwogCSAgcmVsZWFzZV9p bWVfY29udGV4dF9mbiAoaHduZCwgY29udGV4dCk7CisJICBnb3RvIGRmbHQ7CiAJfQogICAgICAg LyogV2Ugc2hvdWxkICJnb3RvIGRmbHQiIGhlcmUgdG8gcGFzcyBXTV9JTUVfU1RBUlRDT01QT1NJ VElPTiB0bwogCSBEZWZXaW5kb3dQcm9jLCBzbyB0aGF0IHRoZSBjb21wb3NpdGlvbiB3aW5kb3cg d2lsbCBhY3R1YWxseQo= --0000000000001873f0056fb0f4e0-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 06:14:09 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 10:14:09 +0000 Received: from localhost ([127.0.0.1]:38198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYTwD-0001D1-Qd for submit@debbugs.gnu.org; Thu, 28 Jun 2018 06:14:09 -0400 Received: from mail-vk0-f45.google.com ([209.85.213.45]:44577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYTwC-0001CP-Lf for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 06:14:04 -0400 Received: by mail-vk0-f45.google.com with SMTP id x4-v6so2938430vkx.11 for <11732@debbugs.gnu.org>; Thu, 28 Jun 2018 03:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yf76CInxsCjN1o54GUdA2JMW5oplLjtlJXE7r6oawRA=; b=P3IHXo9aIJgcZLWCy2k7rX3aJ8AnNHndZwH1aphCKBJiEEwxr9yJnVz3BNya5ddbTt E8tFg+wemY5Z8kJt+W8quf4wyD66867bFhrQClsFLBDIhvHdkC5SfWJ/ZXJPPEfI4JQ6 1tPVhfujfOS2T9xNwUSEm/Tf9SDYSAlnXMaQw6IvqltnsmJJ2ekgXVwWbaN/+WYy6huV jRGofsDNzUHMIupWPTMXwGHqT7+FFZ325Wx34NtoDBztcr5lTCs8x97c1xKqL2jymuEM 9a77/WUiNXlHTxRzNmJ9ptSEyoGwrsh8zNdOG9fB/9ON6Xv+NmNYIcZ88qEagA+NERiN lolA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yf76CInxsCjN1o54GUdA2JMW5oplLjtlJXE7r6oawRA=; b=kO0SeQEV3m0qA03A5Knetjop0/cwrXX6b3VGO9fRWEpcJ/+n6CfXE6e0z+owuJfGpu tEFaMBwP8LU6VeE6sH8+RndVQ5VKgs1gUs9RwyMhPIinZugwSgzqjWSxiRdYRf2GIVjc rrycntQ4oBNrYa4bP4QhLnlmLh0CM2uKnXu5BlDRonaHsqiDTVwQhAYFk7OEwf95x+MT bmcewPm4iTEYT/mPLeJNKWNVvHKnOQlDcZE8Otk9l0AfAlBOb4WG59vCwt1nllrPd43k ntL/ud4Qt1WcLl3cPFUM6/YNyz4ovYpPh8mXidqOsoWq3TOCFxSVr52I0PaGdagJ9GuR z1Cg== X-Gm-Message-State: APt69E1IDTABzxNZFn0CWvSJ6//axWXERlvzar3eEaHWsWdvK0s44WjN Sl6ruaEIPZTumOivIaywpKbRtlwQr95XuhgHU9o= X-Google-Smtp-Source: AAOMgpe7zJZIPc9TVBT70H3EgIr4rZ3Io35VRocOTrwItnyOuSnyW0ytXJt+U9Be/QnHO9nyfK9P3oQZZTqUhHEEw8A= X-Received: by 2002:a1f:ae96:: with SMTP id x144-v6mr5871976vke.52.1530180838978; Thu, 28 Jun 2018 03:13:58 -0700 (PDT) MIME-Version: 1.0 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B34968C.5060103@gmx.at> In-Reply-To: <5B34968C.5060103@gmx.at> From: Masayuki Hatta Date: Thu, 28 Jun 2018 19:13:46 +0900 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: rudalics@gmx.at Content-Type: multipart/mixed; boundary="00000000000059f2d5056fb0fd92" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: eliz@gnu.org, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000059f2d5056fb0fd92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, All you need is patches I attached, "diff" or "diff2" (not both). Best regards, MH 2018=E5=B9=B46=E6=9C=8828=E6=97=A5(=E6=9C=A8) 17:04 martin rudalics : > > > Martin, could you perhaps look into this? > > I'm afraid I won't be of much help in this matter. IIUC there is a > patch I have to apply first and that patch breaks interaction with > dialog boxes on Windows in some way. Which one is the patch I have to > apply? > > martin --=20 Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp --00000000000059f2d5056fb0fd92 Content-Type: application/octet-stream; name=diff Content-Disposition: attachment; filename=diff Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jiye5bck0 ZGlmZiAtdXJOIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMgZW1hY3MtMjYuMS9zcmMvdzMy Zm5zLmMKLS0tIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMJMjAxOC0wNi0yMiAyMToxOTo0 OS40NzY4Nzk0MDAgKzA5MDAKKysrIGVtYWNzLTI2LjEvc3JjL3czMmZucy5jCTIwMTgtMDYtMjYg MTg6MDA6NTQuNzgwNjYxNjAwICswOTAwCkBAIC00NTUxLDcgKzQ1NTEsNyBAQAogCSBkaWFsb2cg Ym94ZXMsIHN1Y2ggYXMgdGhlIGZpbGUgc2VsZWN0aW9uIGRpYWxvZyBvciBmb250CiAJIHNlbGVj dGlvbiBkaWFsb2cuICBTbyBzb21ldGhpbmcgZWxzZSBpcyBuZWVkZWQgdG8gZml4IHRoZQogCSBm b3JtZXIgd2l0aG91dCBicmVha2luZyB0aGUgbGF0dGVyLiAgU2VlIGJ1ZyMxMTczMi4gICovCi0g ICAgICBicmVhazsKKyAgICAgIGdvdG8gZGZsdDsKIAogICAgIGNhc2UgV01fSU1FX0VORENPTVBP U0lUSU9OOgogICAgICAgaWdub3JlX2ltZV9jaGFyID0gMDsK --00000000000059f2d5056fb0fd92 Content-Type: application/octet-stream; name=diff2 Content-Disposition: attachment; filename=diff2 Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jiye5fjd1 ZGlmZiAtdXJOIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMgZW1hY3MtMjYuMS9zcmMvdzMy Zm5zLmMKLS0tIGVtYWNzLTI2LjEub3JpZy9zcmMvdzMyZm5zLmMJMjAxOC0wNi0yMiAyMToxOTo0 OS40NzY4Nzk0MDAgKzA5MDAKKysrIGVtYWNzLTI2LjEvc3JjL3czMmZucy5jCTIwMTgtMDYtMjgg MTc6NTU6NDguMjM3ODAyOTAwICswOTAwCkBAIC00NTQ0LDYgKzQ1NDQsNyBAQAogCiAJICBzZXRf aW1lX2NvbXBvc2l0aW9uX3dpbmRvd19mbiAoY29udGV4dCwgJmZvcm0pOwogCSAgcmVsZWFzZV9p bWVfY29udGV4dF9mbiAoaHduZCwgY29udGV4dCk7CisJICBnb3RvIGRmbHQ7CiAJfQogICAgICAg LyogV2Ugc2hvdWxkICJnb3RvIGRmbHQiIGhlcmUgdG8gcGFzcyBXTV9JTUVfU1RBUlRDT01QT1NJ VElPTiB0bwogCSBEZWZXaW5kb3dQcm9jLCBzbyB0aGF0IHRoZSBjb21wb3NpdGlvbiB3aW5kb3cg d2lsbCBhY3R1YWxseQo= --00000000000059f2d5056fb0fd92-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 08:25:50 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 12:25:50 +0000 Received: from localhost ([127.0.0.1]:38278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYVzh-0006QT-QT for submit@debbugs.gnu.org; Thu, 28 Jun 2018 08:25:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:43805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYVzd-0006Q3-Ql for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 08:25:46 -0400 Received: from [192.168.1.101] ([212.95.5.19]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MUpFU-1fdyZS2LHQ-00YDbn; Thu, 28 Jun 2018 14:25:38 +0200 Message-ID: <5B34D3B9.9010602@gmx.at> Date: Thu, 28 Jun 2018 14:25:29 +0200 From: martin rudalics MIME-Version: 1.0 To: Masayuki Hatta Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B34968C.5060103@gmx.at> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:L8Gc/yxzR95Gpw1Dp/lKhYsHALm/drABteSrhci/7wPH3U0PZC/ Qyw4MsC9TfVVuSwdEoAqPJAEfl+eLyuZSeaE4PcX/Et/D+LMIdyJz4FvN5CU03d18HimyLI 68mODJhP+8SeMCpUOWUgWNM3Hz+9RAcmEa6iRl38fiVJ0fA9hiC+TBYOlacgs/2veKvZYOu edhy9KD8gtSPSBO2SUMJw== X-UI-Out-Filterresults: notjunk:1;V01:K0:C0aDwOmFdHs=:yhFfLAObHPTsmLdESXleAO 8DMyFE9y7NebBEKP002w2sU5vd4snmpmwPfpK5rkrFWMAbc+s27NzdCHbP0rDWlmjoCbbQmCe Psf2scFtRymy8WTi1CY3jtQLurvdHsrkc01ZrUKm/TiiOBGNNomOxjrpelQyWTx2aEYczWKBG 01EMBgBQDO0rwlcj8Vc3EDEVi+8GcSFbbuEA3SO11qukjgQQP5ItuZt1LVv+/I5Mh7RCl2ks0 qv4M+HQwbxCxFTVLlvjTUvAPldQQ8QSaN3Jnd6Q6qJC3tbBtheAH2fTzbS6JWayAkEXreLUOP qgKCULVKKvmuBDFIp3MYFn/jOifhPo/XVnWwk6HqhbPIm4tkwW5ealQt8U31kQDICcFmyA03u S3sgCoUhUAtTpMVJVdaWGG457J+r7vZ1ecjteJT7zkevlMn/xIj6xqv34uaLxMN7s0VSUOf1A mVjsIyQP+HCFg4698/9JZWMzX4q/ItMhAaMI1G6nHLz0Zf08BgHbhF4vGy4yaWLVaz4nRo7Os X+k+iPlV7ysVPFrpVwFFBsPhoMgHYvoYfIUK+pzmyOosCx/LVs1cSbyMUHHucXL7sZUvUksO9 0hoXethwb4GAKK8n/dRHWb3A2ru9ZhDRjtRTLRSI4U/hHJtZpMxR7GTo7Dg+dvDQvFVrgmojd 4oYdsDTEsIvxJDRxKJpD5EEQcTfE7cftz3R67Y5Ety4GFIBezcWDBqTmCYKOaYRwj0V/MUDm0 iiSbAp1HrWdnpUSuAr4XNjXwUEt8FYzRN5gKwaZRA1LyeFaEsGagJAFdYn0B/AleJwe8GVWTw 7hizff7 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: eliz@gnu.org, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > All you need is patches I attached, "diff" or "diff2" (not both). Thank you. I will try them (but certainly not on Windows 10 which I don't have). martin From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 09:09:26 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 13:09:26 +0000 Received: from localhost ([127.0.0.1]:38310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYWft-0007tZ-QZ for submit@debbugs.gnu.org; Thu, 28 Jun 2018 09:09:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYWfs-0007tJ-2p for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 09:09:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYWfj-0006Mj-BK for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 09:09:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYWfj-0006MS-7E; Thu, 28 Jun 2018 09:09:15 -0400 Received: from [176.228.60.248] (port=3020 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYWfi-0007l2-PH; Thu, 28 Jun 2018 09:09:15 -0400 Date: Thu, 28 Jun 2018 16:09:20 +0300 Message-Id: <83h8lnoy67.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B34D3B9.9010602@gmx.at> (message from martin rudalics on Thu, 28 Jun 2018 14:25:29 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B34968C.5060103@gmx.at> <5B34D3B9.9010602@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Thu, 28 Jun 2018 14:25:29 +0200 > From: martin rudalics > CC: eliz@gnu.org, 11732@debbugs.gnu.org > > > All you need is patches I attached, "diff" or "diff2" (not both). > > Thank you. I will try them (but certainly not on Windows 10 which I > don't have). FWIW, I tried on XP and on Windows 7. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 09:28:23 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 13:28:23 +0000 Received: from localhost ([127.0.0.1]:38320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYWyB-0008Q9-Rw for submit@debbugs.gnu.org; Thu, 28 Jun 2018 09:28:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYWyA-0008Pr-7g for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 09:28:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYWy1-0007OY-2e for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 09:28:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYWy0-0007OM-W7; Thu, 28 Jun 2018 09:28:09 -0400 Received: from [176.228.60.248] (port=4478 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYWxz-0004I1-Q9; Thu, 28 Jun 2018 09:28:08 -0400 Date: Thu, 28 Jun 2018 16:28:13 +0300 Message-Id: <83bmbvoxaq.fsf@gnu.org> From: Eli Zaretskii To: Masayuki Hatta In-reply-to: (message from Masayuki Hatta on Thu, 28 Jun 2018 19:11:10 +0900) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: rudalics@gmx.at, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Masayuki Hatta > Date: Thu, 28 Jun 2018 19:11:10 +0900 > Cc: rudalics@gmx.at, 11732@debbugs.gnu.org > > > By "work", do you mean that clicking on anywhere inside these dialogs > > leaves the dialogs visible? > > Yes, I was clicking around inside the dialog. > > I made an animated GIF from screen capture. Its size is around 8MB, > so I won't attach it to this mail. Please see: > > https://www.mhatta.org/test.gif Thanks. It could be that Windows 10 works differently. Or it could be some effect of the fact that you use a Japanese input method. (Is it feasible for you to check on a system without IME installed?) > Also, I made a basically-the-same-but-a-bit-different patch. In this > "diff2", I preserved break. I don't think it changes anything, > though... You are right, it doesn't. > > It's possible that this is somehow related to the fact that I have my > > Windows systems configured to enable "active window tracking" > > (a.k.a. "focus follows mouse"), but even so, I'd like to be able to > > avoid that adverse side effect on systems that are so configured. > > Could you tell me how to set up "active windows tracking" on Windows > 10? I could find some information on the Net, but still not sure how > to do. Try these links, one of them will do the trick, I hope: https://joelpurra.com/projects/X-Mouse_Controls/ https://winaero.com/blog/turn-on-xmouse-active-window-tracking-focus-follows-mouse-pointer-feature-in-windows-8-1-windows-8-and-windows-7/ https://answers.microsoft.com/en-us/windows/forum/windows_10-start-winpc/active-window-tracking-in-windows-10/86c73d65-9d3e-4616-ab17-6d5c5624f777 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 15:17:43 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 19:17:43 +0000 Received: from localhost ([127.0.0.1]:38863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYcQJ-00029x-45 for submit@debbugs.gnu.org; Thu, 28 Jun 2018 15:17:43 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:35783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYcQH-00029j-8W for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 15:17:41 -0400 Received: by mail-oi0-f52.google.com with SMTP id i12-v6so1825817oik.2 for <11732@debbugs.gnu.org>; Thu, 28 Jun 2018 12:17:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OOidC5KOfrSu1vvVyc4UEM/GXCtoOSbB7fV5rwcrsYA=; b=e2gDHiZnCpnkCGqiJHsc+PCm7iAMCKbAlD1IG358JC0VfwVLcgeelL63i4SLHQ/gkU hTEG/i7+elurRYFyvtJteVZLOi9Y9R6xLOrvcsgl+loFbybyLUnLCgUzJ9tleHaMwz/M /NUpaRkYIK+AYuw01dAKm12kh6LayULOEZ/1J8ra61KjQjG3RFjCw+mnt4i2wuWK5gXd 82JV1ncWvUctDaPtr/GN39BbUX23sNe5ffMbSxtTD75GZ4Gntr8jwt+0J8x0CxhNIBmD kXL0FgXl0sosyqQ0s8YZJQSbpPt/bdzizMKddtGG7KpfNp8kWjYLWg93iUZmVZfJDrIj UN9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OOidC5KOfrSu1vvVyc4UEM/GXCtoOSbB7fV5rwcrsYA=; b=T+rMEh2jVhf33psQwu9jmbvyzEaoO1JiOhEtIlQa1XnRnvxIh3kunE07yZOkfnvsSe U72yNNNdC2WZXephjXcLI++lpOAL/R2/+QX+DS/A+JbjfD/UySuMoK2ThJ3RN7Qj3dTm i37BA1I9ggAyOv/ByNaACF8KypnWoi5+EDRFPXRvfGwfmW/G/BNMO23LoIxiHTHv44Ap AT2+y3yP8Mk45k79hDqxhDyY4YZPbHwfjKyRLtKY1JEseXb8SqGdtOUS9zGvSxMnLWsa uD2wEPpf1Qx8zjUY6H1TzbuW/r7RXkTH/Eox3Fv/flJ163Kwnskl19SkZkrsUlxtkkVl ryEA== X-Gm-Message-State: APt69E0IgFa6nxHscybGyy+AMPjKZr70WUrLdJqiUyRPFLK2/gZoAKV5 hbA8mKF9CVbOAr3Q9koQTXBKrUFBy6bU+z65QqU= X-Google-Smtp-Source: AAOMgpfFj9myfSVQ1IT6qGnimUh1E4Uetia08c3fGI3N82I6ekCth19+kPCivQHngFlEGtj1Ckpb0akt8yheAgST4CI= X-Received: by 2002:aca:6a86:: with SMTP id f128-v6mr6105625oic.330.1530213455036; Thu, 28 Jun 2018 12:17:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:3b8d:0:0:0:0:0 with HTTP; Thu, 28 Jun 2018 12:17:34 -0700 (PDT) In-Reply-To: <83bmbvoxaq.fsf@gnu.org> References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> From: Noam Postavsky Date: Thu, 28 Jun 2018 15:17:34 -0400 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, Masayuki Hatta X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 28 June 2018 at 09:28, Eli Zaretskii wrote: > Thanks. It could be that Windows 10 works differently. Or it could > be some effect of the fact that you use a Japanese input method. (Is > it feasible for you to check on a system without IME installed?) >> > It's possible that this is somehow related to the fact that I have my >> > Windows systems configured to enable "active window tracking" >> > (a.k.a. "focus follows mouse"), but even so, I'd like to be able to >> > avoid that adverse side effect on systems that are so configured. >> >> Could you tell me how to set up "active windows tracking" on Windows >> 10? I could find some information on the Net, but still not sure how >> to do. > > Try these links, one of them will do the trick, I hope: > I couldn't find any problem in dialog boxes on my Windows 10 box after applying the patch, I don't have Japanese IME enabled/installed, as far as I know. > https://winaero.com/blog/turn-on-xmouse-active-window-tracking-focus-follows-mouse-pointer-feature-in-windows-8-1-windows-8-and-windows-7/ I tried also after applying the "activate a window by hovering over it with a mouse", and it made no difference (to Emacs, that is). From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 28 15:24:09 2018 Received: (at 11732) by debbugs.gnu.org; 28 Jun 2018 19:24:09 +0000 Received: from localhost ([127.0.0.1]:38875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYcWX-0002L0-Cy for submit@debbugs.gnu.org; Thu, 28 Jun 2018 15:24:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYcWW-0002Km-AV for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 15:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYcWN-0001CZ-U0 for 11732@debbugs.gnu.org; Thu, 28 Jun 2018 15:24:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYcWN-0001CP-Pz; Thu, 28 Jun 2018 15:23:59 -0400 Received: from [176.228.60.248] (port=3028 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYcWN-0002Qm-1a; Thu, 28 Jun 2018 15:23:59 -0400 Date: Thu, 28 Jun 2018 22:24:04 +0300 Message-Id: <83tvpmogtn.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: (message from Noam Postavsky on Thu, 28 Jun 2018 15:17:34 -0400) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Noam Postavsky > Date: Thu, 28 Jun 2018 15:17:34 -0400 > Cc: Masayuki Hatta , 11732@debbugs.gnu.org > > I tried also after applying the "activate a window by hovering over it > with a mouse", and it made no difference (to Emacs, that is). Thanks for trying. Nevertheless, the effect is 100% reproducible on 2 different systems where I regularly work, so I'd like to try to get to the bottom of that. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 03:39:57 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 07:39:57 +0000 Received: from localhost ([127.0.0.1]:39199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYo0b-00068Y-9m for submit@debbugs.gnu.org; Fri, 29 Jun 2018 03:39:57 -0400 Received: from mail-vk0-f53.google.com ([209.85.213.53]:38962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYo0Y-00068L-Ps for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 03:39:55 -0400 Received: by mail-vk0-f53.google.com with SMTP id v16-v6so1718752vkd.6 for <11732@debbugs.gnu.org>; Fri, 29 Jun 2018 00:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xSi/Ww1d3B9gYEkKTMIawhX1CYAJdbD+QjOI4QlxNd4=; b=MvhX8a36piohUPE5DesHjgcJJQHEz5U6Ucf+JipXVgbdh+aU4c1CINNdRTZi3MN6sN nlPmORos86pL7NeW1ZvYchcSS7eTgd33ixtwWd7bfVGYB84FFLHGIXMYlZqF4fdpAjkm YVYnKvfozpxOAtRH3tLdZPX3Csb2fFzbehfWn2zKac9ykkyVk420xXGrveb2m1NUgnlh k++LipZWrBFi3J1X6eXSM5TW7W9OuiAa0f99K/EfgLn5HofAuKo8HBCfm3V7KiP9ZiiG LTCQfx7lMVvEyAMkN+Gt+VthKcJ0vE4Vl/ZTYKc7IDd3vzv4HcK0Bl6EDJ4f0dmTXO2Z OBJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xSi/Ww1d3B9gYEkKTMIawhX1CYAJdbD+QjOI4QlxNd4=; b=gHJnj5igU2Gto6BJy6oQzMEweZyLIhTdfsRtEcPdza2mnLW/8AFWOt1C6Gboprd+iS wfFoULlXnveDnu1/bj15Zbkng/kvrpCuqCfsrwoWjAhcy+93pS951xXafunXZHc11kHt w3mfZ5WyBzKt9/RJsYcIH5vmQPzQvYjRhBB5/0BYfLU9bZV20XOwjDnS3pmOjp/6JNv8 rd9AeGExIuHFiv9TRpR8bNp940yaYVlEgucR+vK/cTb+BDCPXdgJmItsuSYju/VQomqh UgDogTogltF8va8V2BJVb+pmCOJHoY2yFl6TkxnKoeoBSKKIWzNDazhnBQs8mo3VHZ/Q jDxA== X-Gm-Message-State: APt69E1xBMnhH/sK6zYsVhxfU5LMW9k18LI1VN9nUxcn0+jjbFE/BWwE CWhid+r3YNahf/QKwozhQIPtpuY1Ykw4U1irqmw= X-Google-Smtp-Source: AAOMgpesHQja4HhXh0fe28Y4vIajw8Jh+o84HLe2uHUEI4ForikZyYnV2hXXMaArqA5ARlxK/Vcn9PPA1661c1UdFGA= X-Received: by 2002:a1f:fccc:: with SMTP id a195-v6mr8233164vki.109.1530257988918; Fri, 29 Jun 2018 00:39:48 -0700 (PDT) MIME-Version: 1.0 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> In-Reply-To: <83tvpmogtn.fsf@gnu.org> From: Masayuki Hatta Date: Fri, 29 Jun 2018 16:39:36 +0900 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: eliz@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: npostavs@gmail.com, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I also tried XMouse settings[*] on Windows 10 Pro 1803 64bit. It seems the patched binary's dialog boxes work as expected. I guess there are some bugs in XP and Win7 but not in Win10. [*] I installed Winaero Tweaker (https://winaero.com/comment.php?comment.news.1836) and set XMouse Options' "Enable window tracking" and "Enable window raising". Added bonus, now I understand what XMouse means ;-) Best regards, MH 2018=E5=B9=B46=E6=9C=8829=E6=97=A5(=E9=87=91) 4:24 Eli Zaretskii : > > > From: Noam Postavsky > > Date: Thu, 28 Jun 2018 15:17:34 -0400 > > Cc: Masayuki Hatta , 11732@debbugs.gnu.org > > > > I tried also after applying the "activate a window by hovering over it > > with a mouse", and it made no difference (to Emacs, that is). > > Thanks for trying. Nevertheless, the effect is 100% reproducible on 2 > different systems where I regularly work, so I'd like to try to get to > the bottom of that. -- Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 04:43:21 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 08:43:21 +0000 Received: from localhost ([127.0.0.1]:39220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYozw-0007re-V3 for submit@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:21 -0400 Received: from mout.gmx.net ([212.227.17.21]:39659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYozv-0007rR-D5 for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:19 -0400 Received: from [192.168.1.101] ([213.162.73.36]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LxPgU-1gEvG70Wd8-016vF6; Fri, 29 Jun 2018 10:43:13 +0200 Message-ID: <5B35F120.9040807@gmx.at> Date: Fri, 29 Jun 2018 10:43:12 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Masayuki Hatta Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> In-Reply-To: <83y3f0p6n7.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Y7dfA6Puj0xCayt35ul1VHO0pbJbiU4PkYZ4tjbw2JJ4fkneYXX vFvkbHsVjvTvgXLIS+ynwbKZiWfJPHob+RJWIzA1InweAfFo2FuEcDuoK82Wjqaw7RXut7c 3VaedC0EwANt82zK6IzkeY029rgE/dLQ6SHs/4YkqeXWDkPAHevZ5awLA6ytFD1/PQ9a9fJ 2fkdzODUgjB2ACWxG7jqA== X-UI-Out-Filterresults: notjunk:1;V01:K0:AdCkXM5XnAk=:dp7Z4QgHYb6yUmi8WDQyjz pSHs2AYUBUj8i6+sB52/L+Z8sXui9SO7ZtSms9yuQxeWsbFf1pNZ9imdxnK0S6WDXot7OkLKF PPdlf21/7Q4uuNv8yv0u7o5uBIowxh8kTwmrLhcX73SI5Wi9UbcAda559tP6HVBe9n0D02yMd ieoY7wZUDUTpCIylywrjglu4oSA7a3ralVylMbphYeCjv5SvEGgFjZsOtYk5ONBcuWsAeIs2O cArA69arvwZ/5b3zKZCkJ29uzbiNGkCfP0k8kY8z04J8c3VPSh4eFiFNZP76Hg2E/ScSWXqmh /NlC4nxeY16qhQKvaEWq91w2CwVrvJGB44ln33ifeLcb95DOHYfU+up2zlegMXCcqRdK7obe/ gzMwnABGkVgrCKb8I3R30zcaKl5xLsSqjkdFvW55iy0pDq9e7qz8+0b+PpIzmQuwXRNLZ2Xbb jmhIsGU17vXwHu7GRlXUoMpji1hiRBmPDBt49jFpCxYCX/afTviaxVDUeCARnLN7su881F7rC SZ6WPMv56i6B79tcmKPhKUMh4ykPRIfax6bJHSZ/3lg6d/krYRz0bZDM0ED4W1vFQk/rspPx1 WAVF9TtECZVrSf12lytc+q0Te3+/qaT2jDSWEFt4bggNR4oBxvOg/ul76+cGgF+eRg+FSEs1+ 5i0glMZpXohosqY1H+ZDlysztzC717LrOOzlXN0Xo9Iak3KGhhagRrCa6HFZIE9x+r/NYDZfg 3Lh0BRd0dDWf648rS+N2vnJnBsm8p0ND2+sJTr0y2dFtEqBa+YnlGs831DGZMog8GKk3ohJKo UT1fBaN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> Tested with "File -> Open File" dialog and "(w32-font-select)" dialog. >> Both seem to work. > > By "work", do you mean that clicking on anywhere inside these dialogs > leaves the dialogs visible? On 2 different systems where I tried > this, after applying the patch, clicking anywhere in the dialog box > after it opens causes the dialog box to disappear: it is moved in z > order behind the frame from which the dialog was started. > > It's possible that this is somehow related to the fact that I have my > Windows systems configured to enable "active window tracking" > (a.k.a. "focus follows mouse"), but even so, I'd like to be able to > avoid that adverse side effect on systems that are so configured. I now tried on my standard XP machine and do not see any adverse effects with file, directory and font dialog boxes. Maybe it's related to the fact that I have "focus follows mouse" plus "autoraise". Could you try with such a setting? I am very reluctant to change mine becaue I have some additional mouse software working as well. > + SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > + | SWP_NOOWNERZORDER); > + SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), > + dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); What was the more or less precise rationale for this unless it was pure experimenting (in particular the SWP_NOACTIVATE in the first call)? The patch does not have any (adverse) effects here so if it solves the problem for you, I see no problem applying it. > then how do > we solve a similar problem in x-select-font? It doesn't have a > callback function, and if I try adding one, the appearance of the > dialog changes(??) and the OK and CANCEL buttons no longer work. Can you send me the code you tried? > Also, w32_dialog_in_progress seems to try to solve some similar > problem, but is not really working? I guess I simply don't understand > why the dialog is lowered when I click on it. In w32_dialog_in_progress I tried to solve a relatively simple problem: When a frame is in the TOPMOST group and I start a dialog, that frame would obscure the dialog box. So I temporarily remove the frame from the TOPMOST group and move it back when the dialog ends. martin From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 04:43:36 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 08:43:36 +0000 Received: from localhost ([127.0.0.1]:39223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYp0C-0007sB-8X for submit@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:36 -0400 Received: from mout.gmx.net ([212.227.17.21]:47885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYp0A-0007rv-Po for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:43:35 -0400 Received: from [192.168.1.101] ([213.162.73.36]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MfEsY-1fohBq24M6-00OkuN; Fri, 29 Jun 2018 10:43:28 +0200 Message-ID: <5B35F12F.5030808@gmx.at> Date: Fri, 29 Jun 2018 10:43:27 +0200 From: martin rudalics MIME-Version: 1.0 To: Masayuki Hatta , eliz@gnu.org Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:BM7RecVirDXqhftvpOWPjopJceWkeD8/IzJxM1QvGXRcRA0/CDc PHbmXUUs0cayk/0Qd+h6b6XvbZA9UKszwdFX64odhI5ZvzuMgxJLkT3HSs/EdgCDUQOKU26 T/fy137FPn7WkB5yjzKCo/j2KQXqC+qH9dz6BspJ1zsSHDeSXWJGS2sSeCThLEXrheGfi5x PkNxUStID9UuMiFk3N97g== X-UI-Out-Filterresults: notjunk:1;V01:K0:NKNj+1KUC0s=:BoxMTF34G56QWCWcXOpHlJ xy+OKaUBAWMSJ3kppYVEa6/meAayLWWstuMUvLK4ZTEOvxLVN1UkZxF/FZSL5IUxnTe1ALStr 8z2PHO1SYaN806huUGhtJXS6Hx9/qJmJWA/Y0BepmBnmBVSqXWSffMnHFiAu1rnk3iJHuNSPe ycgZpcCuvlZWWWm5qxsp8O2aPMh4MOkwacW/Foad6A+k2NUgg9xIlPJuYius87rTDHM9CGxFv iJaKhdAGzobRo9CycBNev2AAtQp/gy7NXw9jQYCwJySO+C2qVCPhjF1CdAP/408IvZQjowtUR vHezaMNpN/pSaT8E8rMcJJnKatn4goFyig59C6430ueRL2KrE/2jLyU0wWkh5Qs4zA2Ri/96p 4vTT/B8vaeKQdLyThKHtMX3US9EJpgma596zrKYgnsqJIqCZs7QbBfWhwxt65D8bLZYCLhxaf C7Bmgy2VjUaEOo97TctJ5ytI+8dD8GPaGKjVDTgffyCBYOaz+k7yM1lX4UFQge3RhSSCuaNnR RqpzwWqGz4bpkLFDi9N8IltN5mIOR8NfRM7c7dZfL11NJ5uQyq1Y1zGC0ie6d5nh5JB0vlyG0 IQa4NZ7Y5pI8C8ZyyDu1oSSl4r51lmBpTSOSU0wmGrj1gURnYNWXR72elR8tF7Oe9UlDbDaHI jUGscn31fIIIwQ56jbIuoPQL2U6ehpUd3pDGN7x7IidbRPNFAIGjDmV2Ntql/QM58kpTo0N7b cOFD7YTOm5nwm0RBEXxDM0tqHdntgxTfKhIfJlXpktlk1hFsRP5C61IQRQG2NGq4zoMK38mLx tDeZPTp X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: npostavs@gmail.com, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I also tried XMouse settings[*] on Windows 10 Pro 1803 64bit. It > seems the patched binary's dialog boxes work as expected. I guess > there are some bugs in XP and Win7 but not in Win10. If worse comes to worst we could make this optional. > [*] I installed Winaero Tweaker > (https://winaero.com/comment.php?comment.news.1836) and set XMouse > Options' "Enable window tracking" and "Enable window raising". Added > bonus, now I understand what XMouse means ;-) Can you try without "Enable window raising" (that's what Eli has)? martin From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 04:56:36 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 08:56:36 +0000 Received: from localhost ([127.0.0.1]:39242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpCm-0001li-5F for submit@debbugs.gnu.org; Fri, 29 Jun 2018 04:56:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpCk-0001lV-4j for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:56:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYpCb-0000G9-Of for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:56:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYpCb-0000G0-KB; Fri, 29 Jun 2018 04:56:25 -0400 Received: from [176.228.60.248] (port=1242 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYpCa-000352-Se; Fri, 29 Jun 2018 04:56:25 -0400 Date: Fri, 29 Jun 2018 11:56:33 +0300 Message-Id: <83in62nf7i.fsf@gnu.org> From: Eli Zaretskii To: Masayuki Hatta In-reply-to: (message from Masayuki Hatta on Fri, 29 Jun 2018 16:39:36 +0900) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: npostavs@gmail.com, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Masayuki Hatta > Date: Fri, 29 Jun 2018 16:39:36 +0900 > Cc: npostavs@gmail.com, 11732@debbugs.gnu.org > > I also tried XMouse settings[*] on Windows 10 Pro 1803 64bit. It > seems the patched binary's dialog boxes work as expected. I guess > there are some bugs in XP and Win7 but not in Win10. Thanks for testing. FWIW, I doubt these are bugs in Windows. I think this is something we do that is not 100% TRT, and it sometimes misfires. Anyway, let's see what Martin will uncover based on my attempts, and if the conclusion is that this is something specific to my personal configurations, we will install the change. I have (a slightly annoying) workaround for the problem anyway, I just wish it didn't happen at all. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 04:59:19 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 08:59:19 +0000 Received: from localhost ([127.0.0.1]:39246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpFP-0001pb-IA for submit@debbugs.gnu.org; Fri, 29 Jun 2018 04:59:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpFL-0001pN-BQ for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:59:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYpFD-0007Vl-3L for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 04:59:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYpFC-0007VU-VF; Fri, 29 Jun 2018 04:59:07 -0400 Received: from [176.228.60.248] (port=1405 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYpFC-00062z-BJ; Fri, 29 Jun 2018 04:59:06 -0400 Date: Fri, 29 Jun 2018 11:59:14 +0300 Message-Id: <83h8lmnf31.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B35F12F.5030808@gmx.at> (message from martin rudalics on Fri, 29 Jun 2018 10:43:27 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> <5B35F12F.5030808@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: npostavs@gmail.com, mhatta@gmail.com, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Fri, 29 Jun 2018 10:43:27 +0200 > From: martin rudalics > CC: npostavs@gmail.com, 11732@debbugs.gnu.org > > > I also tried XMouse settings[*] on Windows 10 Pro 1803 64bit. It > > seems the patched binary's dialog boxes work as expected. I guess > > there are some bugs in XP and Win7 but not in Win10. > > If worse comes to worst we could make this optional. Nah, it doesn't sound justified. I have a workaround, so the problem is not acute enough to justify a knob in Emacs. > > [*] I installed Winaero Tweaker > > (https://winaero.com/comment.php?comment.news.1836) and set XMouse > > Options' "Enable window tracking" and "Enable window raising". Added > > bonus, now I understand what XMouse means ;-) > > Can you try without "Enable window raising" (that's what Eli has)? Yes, windows get focus here without raising them. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 05:07:20 2018 Received: (at 11732) by debbugs.gnu.org; 29 Jun 2018 09:07:20 +0000 Received: from localhost ([127.0.0.1]:39250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpNA-00021n-EY for submit@debbugs.gnu.org; Fri, 29 Jun 2018 05:07:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYpN8-00021Z-Ez for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 05:07:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYpMz-0002Cr-Uw for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 05:07:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYpMz-0002CZ-QK; Fri, 29 Jun 2018 05:07:09 -0400 Received: from [176.228.60.248] (port=1907 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fYpMz-0002DT-8H; Fri, 29 Jun 2018 05:07:09 -0400 Date: Fri, 29 Jun 2018 12:07:16 +0300 Message-Id: <83fu16nepn.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B35F120.9040807@gmx.at> (message from martin rudalics on Fri, 29 Jun 2018 10:43:12 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Fri, 29 Jun 2018 10:43:12 +0200 > From: martin rudalics > CC: 11732@debbugs.gnu.org > > I now tried on my standard XP machine and do not see any adverse > effects with file, directory and font dialog boxes. Maybe it's > related to the fact that I have "focus follows mouse" plus > "autoraise". Could you try with such a setting? Will do, just not today. > > + SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, > > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > > + | SWP_NOOWNERZORDER); > > + SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), > > + dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); > > What was the more or less precise rationale for this unless it was > pure experimenting (in particular the SWP_NOACTIVATE in the first > call)? SWP_NOACTIVATE was just a copy-paste from similar calls elsewhere. The rationale for the code was to tell windows to put the frame from which the file-selection dialog popped behind the dialog. If w32_dialog_in_progress is meant to do that, I don't understand how it does that; can you explain? (Btw, as long as we are discussing this: the above-suspended value of the z-group frame parameter appears to be completely undocumented.) > The patch does not have any (adverse) effects here so if it > solves the problem for you, I see no problem applying it. OK. > > then how do > > we solve a similar problem in x-select-font? It doesn't have a > > callback function, and if I try adding one, the appearance of the > > dialog changes(??) and the OK and CANCEL buttons no longer work. > > Can you send me the code you tried? Below. It's possible I've put the code in the wrong WM_* message, but I'm really stabbing in the dark in these matters. > In w32_dialog_in_progress I tried to solve a relatively simple > problem: When a frame is in the TOPMOST group and I start a dialog, > that frame would obscure the dialog box. So I temporarily remove the > frame from the TOPMOST group and move it back when the dialog ends. Can you show me some Lisp to try this situation? Here's the patch I used with the font-selection dialog: --- src/w32font.c~ 2018-01-03 13:09:26.000000000 +0200 +++ src/w32font.c 2018-06-27 18:19:04.140101200 +0300 @@ -2505,6 +2505,24 @@ compute_metrics (HDC dc, struct w32font_ metrics->status = W32METRIC_FAIL; } +static UINT_PTR CALLBACK +font_dialog_callback (HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) +{ + static HWND cf_hwnd; + + if (msg == WM_INITDIALOG) + cf_hwnd = ((CHOOSEFONT *)lParam)->hwndOwner; + + if (msg == WM_NOTIFY) + { + SetWindowPos (hdlg, HWND_NOTOPMOST, 0, 0, 0, 0, + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE + | SWP_NOOWNERZORDER); + SetWindowPos (cf_hwnd, hdlg, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); + } + return 0; +} + DEFUN ("x-select-font", Fx_select_font, Sx_select_font, 0, 2, 0, doc: /* Read a font name using a W32 font selection dialog. Return fontconfig style font string corresponding to the selection. @@ -2527,7 +2545,8 @@ in the font selection dialog. */) cf.lStructSize = sizeof (cf); cf.hwndOwner = FRAME_W32_WINDOW (f); - cf.Flags = CF_FORCEFONTEXIST | CF_SCREENFONTS | CF_NOVERTFONTS; + cf.Flags = CF_FORCEFONTEXIST | CF_SCREENFONTS | CF_NOVERTFONTS | CF_ENABLEHOOK; + cf.lpfnHook = font_dialog_callback; /* If exclude_proportional is non-nil, limit the selection to monospaced fonts. */ From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 29 23:14:52 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 03:14:52 +0000 Received: from localhost ([127.0.0.1]:40246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ6LY-0008JM-7D for submit@debbugs.gnu.org; Fri, 29 Jun 2018 23:14:52 -0400 Received: from mail-ua0-f177.google.com ([209.85.217.177]:42819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZ6LW-0008J6-QM for 11732@debbugs.gnu.org; Fri, 29 Jun 2018 23:14:47 -0400 Received: by mail-ua0-f177.google.com with SMTP id x18-v6so6960975uaj.9 for <11732@debbugs.gnu.org>; Fri, 29 Jun 2018 20:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9ULMDN270om00ysIruocP8t1Q5QRjltkOYFA97CV9U8=; b=DGCMPdUtKzwnyhnJSUfABfmhInDTHF54CGUcDzReAnst3JS5hPtQrU1zp9Tra8uDUH xc6iBfcgdKhLPJvwYhmuJ3/irIG9KLGxA9yBBPDZN/HLB/lERM52eFYtxHPYw4vNMwKv ZyhVPj1K6w4n4981+MGs5dhFuAe2PXSL7QK6BLLSyGfi8udYk/hV+DI8nrvbCLnHMcbK 33dwwLjT/uKfo8fqDDajWzPqzsePpz/6qVNCVzKMzPx6Zgd1mavEI5CEcNXYsTM2lnJr i2U0O3CZnWJwiZt0ZvmEFFwd0fwPb33loc8dK0BXk0/39xfJ16EIWHw1wqGKAgzvltKx EicA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9ULMDN270om00ysIruocP8t1Q5QRjltkOYFA97CV9U8=; b=BcK1OJ1CXaHMXbnd/6gjXcyjfN53xqEkzgep27RP9YG9W5gmh5dL9x9jefo6LH+uLG SLk883VWrDSQ+oG3clkwGAEgng4Oib+M0D4IKnBAeoq+ezsN0k0wcN5h/77Lr53ATIhe H/5dmkUMcdlUP+ZYZwGH9YAYzd2RQVB35ZVRlXQJW7/IXjF+Sl7zSorut8EJS5eWEhtG YkCtzKEfmtVOJjUqZsJdRm0W0B9fQzVl1FAak34VoTYpslftVzCNi6mSYM+FMKvRXgqU 0ig6W9QYD+xmWyNWfUhQjttsLt3UadTo+FUZvmaM0oydzX0E8NH8rM25QNWirwrbvd7J 1pQg== X-Gm-Message-State: APt69E1XesEMub6YYlMDotVwmP6VZp6uc+APDf8h+rWPHjDlhsciOu3x yH3VAI01T4ja6cFPqm3x14+FcE4lZdXvscwJrhY= X-Google-Smtp-Source: AAOMgpeHyC4keks22cqhRMYlH3fx+iYl9FPiVSY1/L85rHGluB02/aa4SZQpQB6jMgUgSUtExmgKC1bbXnPIRvrS0lA= X-Received: by 2002:a9f:22ed:: with SMTP id 100-v6mr1047726uan.116.1530328480882; Fri, 29 Jun 2018 20:14:40 -0700 (PDT) MIME-Version: 1.0 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> <5B35F12F.5030808@gmx.at> In-Reply-To: <5B35F12F.5030808@gmx.at> From: Masayuki Hatta Date: Sat, 30 Jun 2018 12:14:28 +0900 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: rudalics@gmx.at Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: eliz@gnu.org, Noam Postavsky , 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, 2018=E5=B9=B46=E6=9C=8829=E6=97=A5(=E9=87=91) 17:43 martin rudalics : > > [*] I installed Winaero Tweaker > > (https://winaero.com/comment.php?comment.news.1836) and set XMouse > > Options' "Enable window tracking" and "Enable window raising". Added > > bonus, now I understand what XMouse means ;-) > > Can you try without "Enable window raising" (that's what Eli has)? I tried enabling window tracking without window raising, and Emacs dialogs still work okay (and window tracking works as expected, too). Best regards, MH -- Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 03:46:48 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 07:46:48 +0000 Received: from localhost ([127.0.0.1]:40292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZAam-0006ji-6T for submit@debbugs.gnu.org; Sat, 30 Jun 2018 03:46:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZAak-0006jV-6m for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 03:46:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZAac-0005y9-1E for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 03:46:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZAab-0005xi-TM; Sat, 30 Jun 2018 03:46:37 -0400 Received: from [176.228.60.248] (port=1963 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZAab-0004IY-2N; Sat, 30 Jun 2018 03:46:37 -0400 Date: Sat, 30 Jun 2018 10:46:47 +0300 Message-Id: <83y3ewn2c8.fsf@gnu.org> From: Eli Zaretskii To: Masayuki Hatta In-reply-to: (message from Masayuki Hatta on Sat, 30 Jun 2018 12:14:28 +0900) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> <5B35F12F.5030808@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: rudalics@gmx.at, npostavs@gmail.com, 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Masayuki Hatta > Date: Sat, 30 Jun 2018 12:14:28 +0900 > Cc: eliz@gnu.org, Noam Postavsky , 11732@debbugs.gnu.org > > > > [*] I installed Winaero Tweaker > > > (https://winaero.com/comment.php?comment.news.1836) and set XMouse > > > Options' "Enable window tracking" and "Enable window raising". Added > > > bonus, now I understand what XMouse means ;-) > > > > Can you try without "Enable window raising" (that's what Eli has)? > > I tried enabling window tracking without window raising, and Emacs > dialogs still work okay (and window tracking works as expected, too). Did you have other non-minimized windows on the desktop when you tried that? Or were Emacs's the only windows? Please try with other windows open and overlapping the Emacs's windows. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 04:07:09 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 08:07:09 +0000 Received: from localhost ([127.0.0.1]:40309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZAuS-0007DS-Pr for submit@debbugs.gnu.org; Sat, 30 Jun 2018 04:07:08 -0400 Received: from mout.gmx.net ([212.227.17.22]:53693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZAuQ-0007Cx-VP for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 04:07:07 -0400 Received: from [192.168.1.101] ([212.95.5.200]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MIdYi-1fbMlf32Cm-002JMI; Sat, 30 Jun 2018 10:06:59 +0200 Message-ID: <5B373A21.9050407@gmx.at> Date: Sat, 30 Jun 2018 10:06:57 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> In-Reply-To: <83fu16nepn.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:V9lhfhPyGf6xcJMMl8d8G0m/VCTGsJzIul6lUI5pVlq6NpNRlz6 TS7Q5OTMLiJ8qRzdyrf5U6U8kLf8th2m+U4/PSx/EpFnZnJew1ktPOJpIyTsMH4/P0q7Lqo 2mTg55MOEWtGvWU2S5QKNJyTdjd4UY9RG4ZHN/Kp3Blvga0g+7TrPHvzGkLFNt4SLVCTvDn HZ9Zd6vsfRByfiK5I2ivw== X-UI-Out-Filterresults: notjunk:1;V01:K0:LHaNASKGCAE=:WkiqNqZDMPYJVnmSrVkFXF kIpBGaQ7w8OohP8Iosy9tTKJXfzfdKEfabVDuTLG8rZpWgjOongH8nNRH2RdO3SW1cI/ZYjy7 qVjicCD/QCVx9DUACKPie0ADOxOQsLklt363DjsHvzX70f0VCTipBiy/VuJA5qVfgsKXyN7RT E8hdctktVDhfjEN8d32joTVAZpH4jRC/g9qJq3wa8e+v9ihFIZT+AETQT3C5E9WlJJB+FBDL1 cRleeScDlryHU9T2mdA/4QoCN25mq5T7RXqrGVg+rMmI5srLGjbzHx7FKZWvNaBugK12Q2yja 69ig6lKVU+7mnrO1dg75amGSJ+oenEjI46NIo9JzGgq5wqouR8igLJwYpE7pMneeJt0xJSBqG zDfpG0jo/85NeBssCmDznYUx2+HmeFY2QiJqD5x/PRqkSKrFsFVwPYMnmZN8slSk/+Y8h/qz/ BQwxl4G1iaDB8iwL7ONioiZ/TXPRrdrl8MmOCqc2B2MyQYG+a0H8JGQ0VcqQu5KKUxvUoYu+L NzdIc8NM1laVzv07WAXLRP4KwIVtUvuDYtqWFVpX1weT6Xpz0cMT/59wkqHcyvCUM97E3FNMw c6Dg1KucD1iT2CBNMR3NueYNssySlgLCtMRE/LxqFIjhaLXD2ndYM+rAo7PYgTwgBYwQt7wH0 LcnhouIwForoMPyDvL7TbeOfmHbVhyBpifGuo7UO7UiSoIm1fDnclSFAqYP/dRJFm7PSG243P k5+IsKqan6Xv6MPt82t+txk4xyZ3VebAjWai7kHSzKKj/259p+So52WRd+kxdJa63E0L+X5yW nZ+3oL6 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Will do, just not today. > >> > + SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, >> > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE >> > + | SWP_NOOWNERZORDER); >> > + SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), >> > + dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); >> >> What was the more or less precise rationale for this unless it was >> pure experimenting (in particular the SWP_NOACTIVATE in the first >> call)? > > SWP_NOACTIVATE was just a copy-paste from similar calls elsewhere. > The rationale for the code was to tell windows to put the frame from > which the file-selection dialog popped behind the dialog. IMO these two calls are not entirely kosher - after all the dialog box is in the topmost group and the selected frame not. So some other application that interrupts the dialog might mess things up. Anyway, I would try moving the SWP_NOACTIVATE from the dialog to the selected frame call like SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); Note that I can't test it because nothing is broken here in the first place. > If > w32_dialog_in_progress is meant to do that, I don't understand how it > does that; can you explain? All w32_dialog_in_progress does is moving frames from and to the topmost group. I don't like putting frames in the topmost group - but if one doesn't use child frames and wants a support frame on top of a normal frame, setting just the z-order is not enough: You run into an eternal loop where Emacs tries to put the support frame above the normal one and Windows immediately reverses that because I obviously want the normal frame to retain focus. > (Btw, as long as we are discussing this: the above-suspended value of > the z-group frame parameter appears to be completely undocumented.) Conceptually, users should never see it: It is set only during dialogs. But if you think it should be documented I'll do that. > Below. It's possible I've put the code in the wrong WM_* message, but > I'm really stabbing in the dark in these matters. > >> In w32_dialog_in_progress I tried to solve a relatively simple >> problem: When a frame is in the TOPMOST group and I start a dialog, >> that frame would obscure the dialog box. So I temporarily remove the >> frame from the TOPMOST group and move it back when the dialog ends. > > Can you show me some Lisp to try this situation? > > Here's the patch I used with the font-selection dialog: > + if (msg == WM_NOTIFY) > + { > + SetWindowPos (hdlg, HWND_NOTOPMOST, 0, 0, 0, 0, > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > + | SWP_NOOWNERZORDER); The HWND_NOTOPMOST doesn't look good - dialog boxes should be topmost. Could you try with static UINT_PTR CALLBACK font_dialog_callback (HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) { static HWND cf_hwnd; if (msg == WM_INITDIALOG) cf_hwnd = ((CHOOSEFONT *)lParam)->hwndOwner; if (msg == WM_NOTIFY) { SetWindowPos (hdlg, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); SetWindowPos (cf_hwnd, hdlg, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); } return 0; } It doesn't show any strange effects here, at least. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 04:30:56 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 08:30:56 +0000 Received: from localhost ([127.0.0.1]:40319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZBHU-0007mV-9D for submit@debbugs.gnu.org; Sat, 30 Jun 2018 04:30:56 -0400 Received: from mail-vk0-f51.google.com ([209.85.213.51]:35393) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZBHR-0007mI-Uf for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 04:30:54 -0400 Received: by mail-vk0-f51.google.com with SMTP id o202-v6so6630861vko.2 for <11732@debbugs.gnu.org>; Sat, 30 Jun 2018 01:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MnUwADKOMiesZgmygUs/9r8Bf8n3Rtaf0pH/Ge0i99w=; b=VEMThMTRvhMkhN9vSIZge0AYXnwnvG8R9Hkbn9H8SAr/W80Rwvfefxx1oBI1//x9my /x7oLVt/uvlxG86Ahyfbxnx/ane9fUEBcDCG7k9exZDQdc55Alj9Tckj+RWCgjNLDB8l u0uTqMHmwwmv4Rtw1ZPKXBixotzF/nYg3x2k7b+1kHtglTaDvajlTNys5t9TeTN4E8JB cOK5K3ftwwM2NZow2S+LXcB4vbOdgRTZePK0eJFWTTnzsGauaVLclL3eAEPupEfsgjrJ 2YClGvw6nen9TmTpMsVmuHf75yirQOryr1iDsQIY46LL/agahFHaCuEuvteFhl+EAZNL PvhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MnUwADKOMiesZgmygUs/9r8Bf8n3Rtaf0pH/Ge0i99w=; b=GeiA/Efyvtcl0dubTssz89DZsWLRia5m2Ue73QEsQ75V/BQIBqebaqxNQoXmMN/U2u RzqMqp+rVt8mxVyYQnQxEe6GSaLZvOPEo1HRXfoi/Vl8iYr6rthXzSCwGcUQFR43wE0J DN8+CylRqafmpu8vFA7zTBXyqqJzXmk5PfDiOMVzd9UXDwnJcHeaDVAowVsEgZ9Pxfza /isN+DQ2VwjMX5xyOWONYtRZU3dgSHgMAeC5Sra4AO0a+6eLPU7Lyc2YJjrKzQZfifgD g8uxT6Is0sy7q0SEO1ct2MZTS6KKVyAorEEHK863DsKZ985KIiUJaoEUGeUis9H4nTsM 1KQw== X-Gm-Message-State: APt69E0pI+rdTwkCKeNHqGpqDlJdkHrymjSiP1b/uzHPNmFFy1KYg/Qk AqvPNK3qp0Dt3y3n1vsFs865atgO5/t2rOCUmzg= X-Google-Smtp-Source: AAOMgpcfJUVlMhphDNqy+hJga0Tx4AtMSyniErygQtD6Q+jjXUzJiZfvPd4CN6M9SSrQ/OBRvdebSDqG7Rv0GMZFJq4= X-Received: by 2002:a1f:9d12:: with SMTP id g18-v6mr10571610vke.5.1530347448211; Sat, 30 Jun 2018 01:30:48 -0700 (PDT) MIME-Version: 1.0 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <83bmbvoxaq.fsf@gnu.org> <83tvpmogtn.fsf@gnu.org> <5B35F12F.5030808@gmx.at> <83y3ewn2c8.fsf@gnu.org> In-Reply-To: <83y3ewn2c8.fsf@gnu.org> From: Masayuki Hatta Date: Sat, 30 Jun 2018 17:30:34 +0900 Message-ID: Subject: Re: bug#11732: Follow-up to bug#11732 To: eliz@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: rudalics@gmx.at, Noam Postavsky , 11732@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, 2018=E5=B9=B46=E6=9C=8830=E6=97=A5(=E5=9C=9F) 16:46 Eli Zaretskii : > > I tried enabling window tracking without window raising, and Emacs > > dialogs still work okay (and window tracking works as expected, too). > > Did you have other non-minimized windows on the desktop when you tried > that? Or were Emacs's the only windows? Please try with other > windows open and overlapping the Emacs's windows. I prepared another screen capture anime GIF: https://www.mhatta.org/test2.gif Note that I can scroll up/down a background Firefox thanks to window tracking sans raising. Best regards, MH --=20 Masayuki Hatta Associate Professor, Faculty of Economics and Management, Surugadai University, Japan http://about.me/mhatta mhatta@gnu.org / mhatta@debian.org / mhatta@opensource.jp / hatta.masayuki@surugadai.ac.jp From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 07:32:38 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 11:32:38 +0000 Received: from localhost ([127.0.0.1]:40390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZE7J-0005dS-Qd for submit@debbugs.gnu.org; Sat, 30 Jun 2018 07:32:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZE7I-0005dD-CM for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 07:32:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZE79-0000S4-TW for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 07:32:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZE79-0000Ra-Q3; Sat, 30 Jun 2018 07:32:27 -0400 Received: from [176.228.60.248] (port=4074 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZE79-0007oY-1G; Sat, 30 Jun 2018 07:32:27 -0400 Date: Sat, 30 Jun 2018 14:32:37 +0300 Message-Id: <83d0w8mrvu.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B373A21.9050407@gmx.at> (message from martin rudalics on Sat, 30 Jun 2018 10:06:57 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 30 Jun 2018 10:06:57 +0200 > From: martin rudalics > CC: mhatta@gmail.com, 11732@debbugs.gnu.org > > > SWP_NOACTIVATE was just a copy-paste from similar calls elsewhere. > > The rationale for the code was to tell windows to put the frame from > > which the file-selection dialog popped behind the dialog. > > IMO these two calls are not entirely kosher - after all the dialog box > is in the topmost group and the selected frame not. So some other > application that interrupts the dialog might mess things up. Anyway, > I would try moving the SWP_NOACTIVATE from the dialog to the selected > frame call like > > SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, > SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); > SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), > dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE > | SWP_NOACTIVATE); > > Note that I can't test it because nothing is broken here in the first > place. I think I tried with HWND_TOPMOST, but what it does (and I see it now with your suggestion) is it doesn't allow raising any other (non-Emacs) window above the file-selection dialog (in the z-order). The original code didn't behave that way, so I looked for a better option, and HWND_NOTOPMOST seemed to do the job... > > If > > w32_dialog_in_progress is meant to do that, I don't understand how it > > does that; can you explain? > > All w32_dialog_in_progress does is moving frames from and to the > topmost group. I don't like putting frames in the topmost group - but > if one doesn't use child frames and wants a support frame on top of a > normal frame, setting just the z-order is not enough: You run into an > eternal loop where Emacs tries to put the support frame above the > normal one and Windows immediately reverses that because I obviously > want the normal frame to retain focus. By "support frame" here you mean the dialog box? If not, then why is this function called every time we are about to show a dialog box? > > (Btw, as long as we are discussing this: the above-suspended value of > > the z-group frame parameter appears to be completely undocumented.) > > Conceptually, users should never see it: It is set only during > dialogs. But if you think it should be documented I'll do that. If it's an internal setting that should never be seen outside the C sources, then it should be documented in the commentary preceding x_set_z_group, and the comment should tell this value is internal, so that whoever reads the code will understand what each setting wants to achieve. > > + if (msg == WM_NOTIFY) > > + { > > + SetWindowPos (hdlg, HWND_NOTOPMOST, 0, 0, 0, 0, > > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > > + | SWP_NOOWNERZORDER); > > The HWND_NOTOPMOST doesn't look good - dialog boxes should be topmost. > Could you try with > > static UINT_PTR CALLBACK > font_dialog_callback (HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) > { > static HWND cf_hwnd; > > if (msg == WM_INITDIALOG) > cf_hwnd = ((CHOOSEFONT *)lParam)->hwndOwner; > > if (msg == WM_NOTIFY) > { > SetWindowPos (hdlg, HWND_TOPMOST, 0, 0, 0, 0, > SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); > SetWindowPos (cf_hwnd, hdlg, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE > | SWP_NOACTIVATE); > } > return 0; > } This looks good on XP, I will try on Windows 7 later. Curiously, HWND_TOPMOST here doesn't prevent raising other windows above the dialog box, as it does with file selector. > It doesn't show any strange effects here, at least. I think the problems I saw were on Windows 7. Will check. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 08:51:16 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 12:51:16 +0000 Received: from localhost ([127.0.0.1]:40415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZFLQ-0007RI-Hp for submit@debbugs.gnu.org; Sat, 30 Jun 2018 08:51:16 -0400 Received: from mout.gmx.net ([212.227.15.19]:33331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZFLP-0007R4-It for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 08:51:16 -0400 Received: from [192.168.1.101] ([212.95.5.200]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LbuCq-1fydvb1u7Q-00jHGu; Sat, 30 Jun 2018 14:51:07 +0200 Message-ID: <5B377CB8.1030602@gmx.at> Date: Sat, 30 Jun 2018 14:51:04 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> In-Reply-To: <83d0w8mrvu.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:WBIyYSRploIh8MVXq+dxjIIOSGhpfOeyurn3iruzrUVL67S23Lm kFVvD5SzATO4jpj6oALOsws9wk34PSlf1gAYj+57CXqhdp7um6t2tBsLkG2sadTscavtHg1 bjTlYg58lQQO9/RUicKwzRNtLkjPSZbgngBR51UCHqD28lLS6PiIxAt7m3gv500c6CzAJ/J DViBFHhHsWxslOszw8MtQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:kcQ0sE+IcL4=:vV0iTf3o0SvBr0JPVgsA+O bp72WTaX3K6jmVGLga5H7FT9TRotM1Zk9Q1h/Pw4ZxVNxahYJMuNXlSBcphzMVJ0gyWQaRjU3 lOSieCAGFoSuENoDQCicjcqUYvznCLbMxYzYLuQVJ0qzmEkrUzFhGgrpmybLgNLgoxTTuquzX Rj5sqM6VH3V7LUWc0lw31VGZBuIl/7iEIYE1rA7hIKRMrr8dskEAKhbYsnW0q9aTejcKZs5ti 04Ds4KttXzKh1BVV2QO+NOPqHSJEz96UTugYl9T3bWUaNzR4afj2uMUOzbSpBmtq4yYlp4Jld hqEhmoDzcBFu9WcUYEPyY6O/HZuaqe5wHti25FUaLSRrjDEDpMphR5jjFXVDBDHqORBGSOYZa tBHheMykS9AavLKF2qcUtnWwm65dIboMkqARm11mDt1jaS3BOtxiwUrvbQ0jt4IFTcpFY9oib QHbYKw9iBaAqP0r+8O0sjcHwuGZo5XRl5U+lr/Snb87H02XZa2fqc1cNdaM2p4DK/K8iyaSWs va9MfTfUSoC6y60YVCSz7B9rH5/kDDEgSVSft312GDS2GBDZfxQouevXPeWGiP6Nt29tA3bRk wjagABFanr/chQYN4xyHxpkYDccyHD2k39Gh+6Fey0zocXH9sLphzANl/F0HCmwslFlJeVhD+ 09DaQG+w3+ojHQN9Bg/vZJ1sQP1y1ieh31x9h7z9IdNeOymm4C2PL/aav8rDwmICfCQumPKj/ B3CBuEh+qmPMAe4tcHdoQeR5tP1KoejiAGgA191erdCZA8uPW5yogh5Lo7CzusfLNHJItImW6 96LM/T0 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, >> SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); >> SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), >> dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE >> | SWP_NOACTIVATE); >> >> Note that I can't test it because nothing is broken here in the first >> place. > > I think I tried with HWND_TOPMOST, You had HWND_TOPMOST here in the patch you attached to the first message I read. I only moved the SWP_NOACTIVATE from the dialog window to that of the selected frame. > but what it does (and I see it now > with your suggestion) is it doesn't allow raising any other > (non-Emacs) window above the file-selection dialog (in the z-order). > The original code didn't behave that way, so I looked for a better > option, and HWND_NOTOPMOST seemed to do the job... I probably don't understand the original problem sketched as But doing so causes trouble with displaying dialog boxes, such as the file selection dialog or font selection dialog. A dialog box uses a modal window on top of the owning window. Anything else will almost certainly cause problems with any windowing system we use. > By "support frame" here you mean the dialog box? No. I mean a frame that in many regards acts like a child frame but uses a top-level window instead of a child window. > If not, then why is > this function called every time we are about to show a dialog box? Because a dialog box should appear on top of any support frame. And it doesn't necessarily do that when both are in the topmost group. That's why I temporarily remove the support frame from that group. > If it's an internal setting that should never be seen outside the C > sources, then it should be documented in the commentary preceding > x_set_z_group, and the comment should tell this value is internal, so > that whoever reads the code will understand what each setting wants to > achieve. OK. I'll do that. > This looks good on XP, Your initial patch for the font dialog showed many bad symptoms (buttons not responding, couldn't drag the dialog box, combo box for script dropping down beneath the dialog box) on XP. > I will try on Windows 7 later. Curiously, > HWND_TOPMOST here doesn't prevent raising other windows above the > dialog box, as it does with file selector. The windows of other applications (including other Emacs instances) or that of the Emacs instance involved in the dialog? Note that Emacs waits for the dialog to finish and doesn't redisplay in this time. Hence if during a dialog I temporarily show another window on top of the dialog and remove that other window, the text in the Emacs frame is usually garbled until the dialog finishes. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 30 09:21:44 2018 Received: (at 11732) by debbugs.gnu.org; 30 Jun 2018 13:21:44 +0000 Received: from localhost ([127.0.0.1]:40438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZFot-0008BR-31 for submit@debbugs.gnu.org; Sat, 30 Jun 2018 09:21:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZFoq-0008BE-Gj for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 09:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZFoh-0005Yd-DF for 11732@debbugs.gnu.org; Sat, 30 Jun 2018 09:21:35 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZFoh-0005YN-8j; Sat, 30 Jun 2018 09:21:31 -0400 Received: from [176.228.60.248] (port=3038 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZFog-0006K9-Mr; Sat, 30 Jun 2018 09:21:31 -0400 Date: Sat, 30 Jun 2018 16:21:41 +0300 Message-Id: <837emgmmu2.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B377CB8.1030602@gmx.at> (message from martin rudalics on Sat, 30 Jun 2018 14:51:04 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 30 Jun 2018 14:51:04 +0200 > From: martin rudalics > CC: mhatta@gmail.com, 11732@debbugs.gnu.org > > >> SetWindowPos (dialog, HWND_TOPMOST, 0, 0, 0, 0, > >> SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); > >> SetWindowPos (FRAME_W32_WINDOW (SELECTED_FRAME ()), > >> dialog, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE > >> | SWP_NOACTIVATE); > >> > >> Note that I can't test it because nothing is broken here in the first > >> place. > > > > I think I tried with HWND_TOPMOST, > > You had HWND_TOPMOST here in the patch you attached to the first > message I read. Right, sorry. The issue still stands, though. > > but what it does (and I see it now > > with your suggestion) is it doesn't allow raising any other > > (non-Emacs) window above the file-selection dialog (in the z-order). > > The original code didn't behave that way, so I looked for a better > > option, and HWND_NOTOPMOST seemed to do the job... > > I probably don't understand the original problem sketched as > > But doing so causes trouble with displaying > dialog boxes, such as the file selection dialog or font > selection dialog. > > A dialog box uses a modal window on top of the owning window. I didn't mean the owing window, I meant the other windows on the desktop, belonging to applications other than Emacs. Using HWND_TOPMOST makes me unable to raise any window of another application above the dialog box in the z-order. The existing code does allow that. > > If not, then why is > > this function called every time we are about to show a dialog box? > > Because a dialog box should appear on top of any support frame. And > it doesn't necessarily do that when both are in the topmost group. > That's why I temporarily remove the support frame from that group. OK, so the call to w32_dialog_in_progress has nothing to do with the z-order of the dialog wrt its owning frame, right? > > I will try on Windows 7 later. Curiously, > > HWND_TOPMOST here doesn't prevent raising other windows above the > > dialog box, as it does with file selector. > > The windows of other applications (including other Emacs instances) or > that of the Emacs instance involved in the dialog? The former. > Note that Emacs waits for the dialog to finish and doesn't redisplay > in this time. Hence if during a dialog I temporarily show another > window on top of the dialog and remove that other window, the text in > the Emacs frame is usually garbled until the dialog finishes. Yes, I know. That wasn't what I was worried about. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 01 05:01:10 2018 Received: (at 11732) by debbugs.gnu.org; 1 Jul 2018 09:01:10 +0000 Received: from localhost ([127.0.0.1]:41599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZYEH-0004Q8-T8 for submit@debbugs.gnu.org; Sun, 01 Jul 2018 05:01:10 -0400 Received: from mout.gmx.net ([212.227.17.22]:33485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZYEE-0004PV-Q3 for 11732@debbugs.gnu.org; Sun, 01 Jul 2018 05:01:07 -0400 Received: from [192.168.1.101] ([46.125.250.78]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LviG8-1gBzdf1L2q-017Wkr; Sun, 01 Jul 2018 11:00:59 +0200 Message-ID: <5B389847.6000204@gmx.at> Date: Sun, 01 Jul 2018 11:00:55 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> In-Reply-To: <837emgmmu2.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:ek11uthxKAiNCQV5OsKVuRsbNSIBrQmr3XmMZqe7gucRuZaZYqz dCJ0zGBpaJTaKxvwdPVpjAubSe1TGLjtjtueLfDBbknF/g+G4gINdHqE6MGofw0brGppPZo vJw5vaoc6B7lNoiVM2Wh/2F8MDb5eoKCISfEvSkZHutYUu1d2iVJVREZ3hHrI1gIBcXab67 9r+syxd99We4Lk/kqkFCA== X-UI-Out-Filterresults: notjunk:1;V01:K0:TaPPoESSFqk=:dqNB8CiiHXPTaAnT0u1EzZ L6WwJEdATlB+EmlxJqRw6916QO6yHTqNvRA+4YuVSFlWXEvw3XKuCCkcbEDcKRBFJkQWuWvl/ WfJtm67HRFlx9DDnd3+BHhHO5Hfn2UKQb/zM6n03r4N/xSOSooEKPu/zY5kI/bckxuMIZeEyr IOiOUGMLYe/6lfUzzqJUjYz5Uht1NC9WTHhLn2hIPqtAG/yaRYll4XeY0LsJ8bsTDkcLSwmdG eevWhGTXIsZr2DgUGzAemUBLgNkpgTvIjyvQV9byVV1QluiMSEhnMaDVydP2uU4NynxnFUv9+ TcDBtijXcqTNj/T7cmWHYoM+2wR96Ta11xWldylWKvHcLdt5362eme+5Pi8SmnC5srvNTjJZO gpgjqH1qPaV+bvLJOg+9dLwmV8yWSZY1RS7pedsgM4ei0deSEJunZWco3IXLdW+Ub0jdf8e1b HsYATP/U1G5LsYb9LOvGHkU0pen2H470ND8SZuP3jPUn8nPGknRlmJDnz3YN5odAG9esjMIjy hXtrEW7dAOukg+AYXk7tuEdsqUQUhTnfuuzgsdxPRbUSqvkAlnBJE8ehY4NGtrfqpPxdwnVyH 6kaPImqpD7Wv50hynibHmORqTJEOzj9edp7LdkOVjJ+H/xis0ZAq/jLF8RDdBB4fSE/hBmFWM QRgSE/K6kvFTA3E9XoLWsNiXr+GU5uslMst5eE/TglgrxY9N4IUYwoyJ+lEDGiIJz+7ehtnD9 gXXRjID/TzjAYRosaUYDXmGjXWdq9tRmHhCPXQyOUJBgor2rq5jkbhj8L9Qlr7y+OSaUQULZg MHYtJkN X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I didn't mean the owing window, I meant the other windows on the > desktop, belonging to applications other than Emacs. Using > HWND_TOPMOST makes me unable to raise any window of another > application above the dialog box in the z-order. The existing code > does allow that. Because it leaves the entire z-order handling to Windows. The idea of using a dialog box is that you tell Windows to glue together the frame with the dialog box and let no other window enter the z-order in between these two. How Windows implements that has likely never been analyzed so we won't know. But I suppose that Windows simply intercepts all (implicit) z-reorder requests to let no other window in. Now if Masayuki's proposal breaks this relationship please tell me exactly how. IIUC you mean to say that with focus follows mouse sans autoraise the two Emacs windows (always) appear on top of other applications. But sans autoraise means that the z-order should not change when you move the mouse so you apparently clicked into another application's window or tried to Alt-tab to it. Please clarify this giving us the precise steps you used. In either case having Emacs fiddle with the z-order and activation of dialog box windows is dangerous and should be avoided in the first place. Also, the code below is creepy and certainly not what a well-behaved application is supposed to do: EnableWindow (edit_control, FALSE); /* Note that at least on Windows 7, the above call to EnableWindow disables the window that would ordinarily have focus. If we do not set focus to some other window here, focus will land in no man's land and the user will be unable to tab through the dialog box (pressing tab will only result in a beep). Avoid that problem by setting focus to the list here. */ if (hdr_code == CDN_INITDONE) SetFocus (list); > OK, so the call to w32_dialog_in_progress has nothing to do with the > z-order of the dialog wrt its owning frame, right? Right. I meanwhile tried to document this better. Please have a look. >> Note that Emacs waits for the dialog to finish and doesn't redisplay >> in this time. Hence if during a dialog I temporarily show another >> window on top of the dialog and remove that other window, the text in >> the Emacs frame is usually garbled until the dialog finishes. > > Yes, I know. That wasn't what I was worried about. I know. My note was just a reminder that moving other windows above the Emacs frame while a dialog is in progress doesn't result in a pleasant user experience anyway. martin From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 01 10:29:33 2018 Received: (at 11732) by debbugs.gnu.org; 1 Jul 2018 14:29:33 +0000 Received: from localhost ([127.0.0.1]:42228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZdM4-0001Oy-Ut for submit@debbugs.gnu.org; Sun, 01 Jul 2018 10:29:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZdM3-0001Om-2r for 11732@debbugs.gnu.org; Sun, 01 Jul 2018 10:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZdLu-0008Iq-Hy for 11732@debbugs.gnu.org; Sun, 01 Jul 2018 10:29:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZdLu-0008Ik-EG; Sun, 01 Jul 2018 10:29:22 -0400 Received: from [176.228.60.248] (port=4453 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZdLt-0003Gk-OI; Sun, 01 Jul 2018 10:29:22 -0400 Date: Sun, 01 Jul 2018 17:29:12 +0300 Message-Id: <83sh53kp1j.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B389847.6000204@gmx.at> (message from martin rudalics on Sun, 01 Jul 2018 11:00:55 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sun, 01 Jul 2018 11:00:55 +0200 > From: martin rudalics > CC: mhatta@gmail.com, 11732@debbugs.gnu.org > > > I didn't mean the owing window, I meant the other windows on the > > desktop, belonging to applications other than Emacs. Using > > HWND_TOPMOST makes me unable to raise any window of another > > application above the dialog box in the z-order. The existing code > > does allow that. > > Because it leaves the entire z-order handling to Windows. The idea of > using a dialog box is that you tell Windows to glue together the frame > with the dialog box and let no other window enter the z-order in > between these two. How Windows implements that has likely never been > analyzed so we won't know. But I suppose that Windows simply > intercepts all (implicit) z-reorder requests to let no other window > in. Got it, thanks. > Now if Masayuki's proposal breaks this relationship please tell me > exactly how. IIUC you mean to say that with focus follows mouse sans > autoraise the two Emacs windows (always) appear on top of other > applications. But sans autoraise means that the z-order should not > change when you move the mouse so you apparently clicked into another > application's window or tried to Alt-tab to it. Please clarify this > giving us the precise steps you used. The dialog appears on top of the frame from which it was invoked as usual, and as expected (since Windows raises the frame when you click on its menu, the frame is indeed usually on top of the other apps, modulo apps like Task Manager that force themselves on top of everything). Then any click _anywhere_ inside the dialog causes the dialog to disappear, because the owning frame is raised to cover it. A second click at the same coordinates causes the dialog to be shown blinking, as when you click on some part outside the dialog. My workaround for that is to drag the dialog outside of its owning frame, and then use it as usual. Did I explain the situation clearly? Btw, I have now established that focus follows mouse causes this: if I disable it, the problem disappears. And autoraise doesn't affect the issue in any way. I tried both X-Mouse Controls and Winaero Tweaker, on 2 different Windows 7 systems, with the same result: enabling focus-follows-mouse causes the issue, disabling it makes the issue go away. (Of course, both Windows 7 systems were configured by yours truly, so maybe there's some other factor acting as a catalyst. But all else being equal, just turning on and off focus-follows-mouse causes the problem to appear or disappear on those 2 systems.) > > OK, so the call to w32_dialog_in_progress has nothing to do with the > > z-order of the dialog wrt its owning frame, right? > > Right. I meanwhile tried to document this better. Please have a > look. LGTM, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 01 10:34:46 2018 Received: (at 11732) by debbugs.gnu.org; 1 Jul 2018 14:34:46 +0000 Received: from localhost ([127.0.0.1]:42232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZdR7-0001X8-M1 for submit@debbugs.gnu.org; Sun, 01 Jul 2018 10:34:45 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZdR5-0001Wv-HU for 11732@debbugs.gnu.org; Sun, 01 Jul 2018 10:34:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZdQz-0002XW-Ci for 11732@debbugs.gnu.org; Sun, 01 Jul 2018 10:34:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZdQv-0002WG-Jq; Sun, 01 Jul 2018 10:34:33 -0400 Received: from [176.228.60.248] (port=4769 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZdQv-0000xx-1N; Sun, 01 Jul 2018 10:34:33 -0400 Date: Sun, 01 Jul 2018 17:34:24 +0300 Message-Id: <83r2knkosv.fsf@gnu.org> From: Eli Zaretskii To: rudalics@gmx.at In-reply-to: <83d0w8mrvu.fsf@gnu.org> (message from Eli Zaretskii on Sat, 30 Jun 2018 14:32:37 +0300) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 30 Jun 2018 14:32:37 +0300 > From: Eli Zaretskii > Cc: 11732@debbugs.gnu.org, mhatta@gmail.com > > > > + if (msg == WM_NOTIFY) > > > + { > > > + SetWindowPos (hdlg, HWND_NOTOPMOST, 0, 0, 0, 0, > > > + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE > > > + | SWP_NOOWNERZORDER); > > > > The HWND_NOTOPMOST doesn't look good - dialog boxes should be topmost. > > Could you try with > > > > static UINT_PTR CALLBACK > > font_dialog_callback (HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) > > { > > static HWND cf_hwnd; > > > > if (msg == WM_INITDIALOG) > > cf_hwnd = ((CHOOSEFONT *)lParam)->hwndOwner; > > > > if (msg == WM_NOTIFY) > > { > > SetWindowPos (hdlg, HWND_TOPMOST, 0, 0, 0, 0, > > SWP_NOMOVE | SWP_NOSIZE | SWP_NOOWNERZORDER); > > SetWindowPos (cf_hwnd, hdlg, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE > > | SWP_NOACTIVATE); > > } > > return 0; > > } > > This looks good on XP, I will try on Windows 7 later. Curiously, > HWND_TOPMOST here doesn't prevent raising other windows above the > dialog box, as it does with file selector. > > > It doesn't show any strange effects here, at least. > > I think the problems I saw were on Windows 7. Will check. Tested the above on Windows 7. Seems to work well, with 2 caveats: . The dialog and its frame are raised to be topmost, so no other application window can be put above them, something that the current code allows. Not sure if this will annoy people. . The font selection dialog looks somewhat differently on Windows 7 from the dialog shown by the existing code -- the layout is slightly different, and the link "Show more fonts" is not there. Unless you have some new ideas about the problem, given what I described in my other message, I guess we should disregard the problems that somehow only I can reproduce, and go with the original change. It would be nice to avoid the problems I have, but if not, they are not critical and shouldn't block the main issue of this bug report. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 03 04:30:15 2018 Received: (at 11732) by debbugs.gnu.org; 3 Jul 2018 08:30:16 +0000 Received: from localhost ([127.0.0.1]:44382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faGhT-0005Ir-O2 for submit@debbugs.gnu.org; Tue, 03 Jul 2018 04:30:15 -0400 Received: from mout.gmx.net ([212.227.15.18]:60931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faGhR-0005Ie-Pb for 11732@debbugs.gnu.org; Tue, 03 Jul 2018 04:30:14 -0400 Received: from [192.168.1.101] ([46.125.250.42]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LyWAQ-1gEZM832fO-015sPO; Tue, 03 Jul 2018 10:30:06 +0200 Message-ID: <5B3B3407.3020300@gmx.at> Date: Tue, 03 Jul 2018 10:29:59 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> In-Reply-To: <83sh53kp1j.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:ODSBOwNwkD1sVg15XQH0rXLgxW9x9m8067KrBuSYdIReBTIyVF/ JhiLm09lUNumCDUsQkGQ40UaSaJyObAUMJVp82F4F/T5X5VkV+ralaaG1WQf675Z+tCWiUX 6KH6293v35NAQ6msfh7j/GBygR5BxXXHovX99tmnph+DG2M/TwG38ztuOqENeYJfL2ih2yo 5IHBNc8Jyglns86aTkquQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:q7OAfkrq8XU=:mFw2z3a8Hxg6xXcUcHSkUP O9ICpivooMfqSEJ4y7dfyFIMlT+Cs9PQmn//hmR35y0fRIVOO7BPmhx+Ud6CLZehMoi6vS7Sr YK5Q3NoD6zqbz0L0hU7hl3MHCq0+O4UDXWfgj4g6ksahWwIDSZjANWXmfb1oGmvSy6kC1UTJw 4XJjzcrWHwoC9NohUQ8GeaVuB/n3v+egnLq5FP24MSIc/mI12YQ6IKw1k2tl/X8xu+u0F8hGs 0PxLGvNPjLCD95+4yq3Fzp1/zOQ1zA92uGW8GjarDOTm+0MoUv1B3oQLB5xLBHi4/sq5FRDiK hu/Zsd0TjPACfGIj98L+ZYyPP6ZGc1peEDGQVeIVju4MBa+AuFNlsUgky2foRETXCLe+Lwewx ndYpHDVLR6L/0XcDlKKXfhv1WIxh8CMNvde16dICuiohQ7AW+CqkcTCWimjhRycdLLQfIeVwn XuJal/DE5OZlOzTT6yTWr6PM7AfczitkKz2zm0wcRzasyHHxb8lODubyW8FPekk9DNeiUPIVw Z8nVJ0WTeAt9ptSbSDmN3N7bFjqwznO8K7MSsUMDvgyNR9qhKkM6M+nFg+JQdAWU/wuMTbbXB 1ZE50gI4QWX4CiEAU9pyGIaoYVBVvxtg7pE0GF6Rfm5U8z/jYJrQJqPnD+A6AcIe73JbbnEdm MThJKSKTWlmfvVy3MW01UHLNDcP6iMk+3BduFnbTX5aPVa3kIJlYMv8iW26hzewX3hKzXWfhG HB4PNln5LQXEYZ1EfP7woVFT1UJF17a6gexxA+giSSh3tQqN6LuAmrnawn6+eyN1lvTKJc7O7 +K4ITQf X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > The dialog appears on top of the frame from which it was invoked as > usual, and as expected (since Windows raises the frame when you click > on its menu, the frame is indeed usually on top of the other apps, > modulo apps like Task Manager that force themselves on top of > everything). Then any click _anywhere_ inside the dialog causes the > dialog to disappear, because the owning frame is raised to cover it. > A second click at the same coordinates causes the dialog to be shown > blinking, as when you click on some part outside the dialog. Confirmed (finally, it took me some time to get my Windows 7 version up and running again) with the autoraising option set. The blinking might be caused by some z-order fight maybe stopped by some timeout. > My > workaround for that is to drag the dialog outside of its owning frame, > and then use it as usual. That's no workaround on my Thinkpad. The two windows will always overlap each other and I cannot shrink any of them because Windows does not allow it. > Did I explain the situation clearly? You did. > Btw, I have now established that focus follows mouse causes this: if I > disable it, the problem disappears. And autoraise doesn't affect the > issue in any way. I tried both X-Mouse Controls and Winaero Tweaker, > on 2 different Windows 7 systems, with the same result: enabling > focus-follows-mouse causes the issue, disabling it makes the issue go > away. (Of course, both Windows 7 systems were configured by yours > truly, so maybe there's some other factor acting as a catalyst. But > all else being equal, just turning on and off focus-follows-mouse > causes the problem to appear or disappear on those 2 systems.) No further explanations needed, the problem is clearly visible here now. Do you have any explanation why calling DefWindowProc when handling WM_IME_STARTCOMPOSITION causes this aberrant behavior and not any of the other cases where we call DefWindowProc? martin From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 03 14:51:33 2018 Received: (at 11732) by debbugs.gnu.org; 3 Jul 2018 18:51:33 +0000 Received: from localhost ([127.0.0.1]:45659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faQOj-0006kE-6A for submit@debbugs.gnu.org; Tue, 03 Jul 2018 14:51:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1faQOg-0006k0-PG for 11732@debbugs.gnu.org; Tue, 03 Jul 2018 14:51:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1faQOW-0005fv-VO for 11732@debbugs.gnu.org; Tue, 03 Jul 2018 14:51:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1faQOW-0005fp-QH; Tue, 03 Jul 2018 14:51:20 -0400 Received: from [176.228.60.248] (port=3268 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1faQOV-0005Gq-57; Tue, 03 Jul 2018 14:51:20 -0400 Date: Tue, 03 Jul 2018 21:50:58 +0300 Message-Id: <83d0w4jgq5.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B3B3407.3020300@gmx.at> (message from martin rudalics on Tue, 03 Jul 2018 10:29:59 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> <5B3B3407.3020300@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Tue, 03 Jul 2018 10:29:59 +0200 > From: martin rudalics > CC: mhatta@gmail.com, 11732@debbugs.gnu.org > > No further explanations needed, the problem is clearly visible here > now. Do you have any explanation why calling DefWindowProc when > handling WM_IME_STARTCOMPOSITION causes this aberrant behavior and not > any of the other cases where we call DefWindowProc? None whatsoever. Moreover, I sometimes see the same problem in my "normal" Emacs session running 26.1 sources where this change was not done (but in "emacs -Q" I cannot trigger the problem unless I make the change). So I think it's not the proposed change that does it, it's something we don't do entirely correctly that interacts badly with focus-follows-mouse configuration. Which is why I said that unless you have ideas how to fix this, we should simply install the proposed change, and deal with the dialog problems separately, perhaps using the changes I tried and you fixed. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 07 03:45:46 2018 Received: (at 11732) by debbugs.gnu.org; 7 Jul 2018 07:45:46 +0000 Received: from localhost ([127.0.0.1]:49040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbhuc-0001v1-2D for submit@debbugs.gnu.org; Sat, 07 Jul 2018 03:45:46 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:42446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbhua-0001un-K5 for 11732@debbugs.gnu.org; Sat, 07 Jul 2018 03:45:44 -0400 Received: by mail-pf0-f180.google.com with SMTP id v9-v6so10152787pff.9 for <11732@debbugs.gnu.org>; Sat, 07 Jul 2018 00:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=BYBr4/AJ8tXGR/VXtpANOgsuBXHdiyFICvXjuiaFzW0=; b=s4NUrZD6tjI7y4J6ddvghjHQ5mBz49LKYM8Ax5MxlRD3aF5TcR9bxfpJysLN9mzVcK OG31ePCXGfRRAmt5efwB6BPZtv45wIxREUROR8Ej+QkMFMeYemOscWT4egvWEtF0l4rk jj027NjqJiH1YkmpH50NhPd9uIKD5l3BpZjciuF0pb5A2P6rmGsLq+K3XPn/ncMAWWWw XCco4ZGWSNDikBoMLBi6YqNxsmv8kHtiBl3Rceld1Vav1Kf/VtP0S9pENL+TjxCwCwWI AtYQ9g21maXbFw0tTJNxn5FJh81GlFu4XaujiDr7z6BmCSAn+DP4zcy8MDWQkoJG6PBC 1Igg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=BYBr4/AJ8tXGR/VXtpANOgsuBXHdiyFICvXjuiaFzW0=; b=TeNDfKDyCgOA1NUIp9lOO5YyJLqtFW2hatd2fs5KbyL/J+eVpBFSmDP0TyMoino3pb KRt/dIcvzDLLcC4ifYlk4BMSouid9lO/dtjGLologXQp7/A13kspXcZ0qQ0vdxcyG2s+ BT7AfAWKKDxazSjxH1WF8XmSUNdt7p1LCc5f7nI1jiAZ42PSbfu/lxxDg264Y3mQrpTj l3uj8T63xIt64MyKgw7IP0TKChjAd3iQV5Ohie31AZHuj0zknfkhpQWCjClEb+KMfXbW HgacZEyrGn2XlH/uHAiV74nEMVvRJmG21GzCHkLq8Btx7MwtJaCzWNlXNFGMWpQ6Z6UC uD4Q== X-Gm-Message-State: APt69E1/C5kmlv/dqu20FhgVHZrHdU7Pe1KE4hdWnMFYFsHn0bPUDlmz QZOtOGOFQV7bsIFdy+K1tw4= X-Google-Smtp-Source: AAOMgpd9xsI5uokwL8G4leX4Nzk9A4hKvTvtcSmA2NlR8SY+V0NPHJ0lCNCtMpTiMcZ8ksopByCuFg== X-Received: by 2002:a63:ba43:: with SMTP id l3-v6mr11547592pgu.295.1530949538766; Sat, 07 Jul 2018 00:45:38 -0700 (PDT) Received: from thinkless2017 (p69229-ipngn200201tottori.tottori.ocn.ne.jp. [114.161.116.229]) by smtp.gmail.com with ESMTPSA id y3-v6sm24401489pgr.44.2018.07.07.00.45.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Jul 2018 00:45:38 -0700 (PDT) From: Tak Kunihiro X-Google-Original-From: Tak Kunihiro To: Eli Zaretskii Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> <5B3B3407.3020300@gmx.at> <83d0w4jgq5.fsf@gnu.org> Date: Sat, 07 Jul 2018 16:45:31 +0900 In-Reply-To: <83d0w4jgq5.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 03 Jul 2018 21:50:58 +0300") Message-ID: <86wou732w4.fsf@misasa.okayama-u.ac.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 11732 Cc: martin rudalics , tkk@misasa.okayama-u.ac.jp, 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Which is why I said that unless you have ideas how to fix this, we > should simply install the proposed change, and deal with the dialog > problems separately, perhaps using the changes I tried and you fixed. The proposed change is very beneficial for me. Then I can ask people using MS Windows to type in Japanese character using Emacs in a Texinfo document. Could you install it!? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 07 06:00:50 2018 Received: (at 11732) by debbugs.gnu.org; 7 Jul 2018 10:00:50 +0000 Received: from localhost ([127.0.0.1]:49110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbk1K-0005OH-5m for submit@debbugs.gnu.org; Sat, 07 Jul 2018 06:00:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbk1I-0005O4-RQ for 11732@debbugs.gnu.org; Sat, 07 Jul 2018 06:00:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbk1C-0005F0-SS for 11732@debbugs.gnu.org; Sat, 07 Jul 2018 06:00:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50853) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbk19-0005DO-8d; Sat, 07 Jul 2018 06:00:39 -0400 Received: from [176.228.60.248] (port=3236 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fbk17-0004IG-DO; Sat, 07 Jul 2018 06:00:38 -0400 Date: Sat, 07 Jul 2018 13:00:41 +0300 Message-Id: <838t6njrg6.fsf@gnu.org> From: Eli Zaretskii To: Tak Kunihiro In-reply-to: <86wou732w4.fsf@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Sat, 07 Jul 2018 16:45:31 +0900) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> <5B3B3407.3020300@gmx.at> <83d0w4jgq5.fsf@gnu.org> <86wou732w4.fsf@misasa.okayama-u.ac.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732 Cc: rudalics@gmx.at, 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Tak Kunihiro > Cc: martin rudalics , 11732@debbugs.gnu.org, mhatta@gmail.com > Cc: tkk@misasa.okayama-u.ac.jp > Date: Sat, 07 Jul 2018 16:45:31 +0900 > > > Which is why I said that unless you have ideas how to fix this, we > > should simply install the proposed change, and deal with the dialog > > problems separately, perhaps using the changes I tried and you fixed. > > The proposed change is very beneficial for me. Then I can ask people > using MS Windows to type in Japanese character using Emacs in a Texinfo > document. Could you install it!? I'm waiting for Martin to tell whether he has some ideas about the negative effects this has on popup dialogs. We will install the change after that, with or without the remedies for those problems. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 07 06:21:49 2018 Received: (at 11732) by debbugs.gnu.org; 7 Jul 2018 10:21:49 +0000 Received: from localhost ([127.0.0.1]:49121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbkLd-0005rD-Ai for submit@debbugs.gnu.org; Sat, 07 Jul 2018 06:21:49 -0400 Received: from mout.gmx.net ([212.227.15.15]:45287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbkLb-0005qz-2j for 11732@debbugs.gnu.org; Sat, 07 Jul 2018 06:21:47 -0400 Received: from [192.168.1.101] ([46.125.249.124]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Me8di-1fSSIH3FHS-00PvxK; Sat, 07 Jul 2018 12:21:39 +0200 Message-ID: <5B40942F.2030105@gmx.at> Date: Sat, 07 Jul 2018 12:21:35 +0200 From: martin rudalics MIME-Version: 1.0 To: Eli Zaretskii , Tak Kunihiro Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> <5B3B3407.3020300@gmx.at> <83d0w4jgq5.fsf@gnu.org> <86wou732w4.fsf@misasa.okayama-u.ac.jp> <838t6njrg6.fsf@gnu.org> In-Reply-To: <838t6njrg6.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:uJToid4B1hhdItWTePAWL3h9jnrfwU8mnul1lYAJZNDV9nuBgqJ DDCZ8ZIAurBdfK9x9jnTK1oEJii7Ttqy91EH1aujubPRbZnD+nl/nmHsrS/YKIi6V5RE3yY LC4h7XbRzsGMTDA7qEpk9KZFgjiX9kMZ8ArzkaOyGB/zvea7qITiCXNbWYYVlu81p+urwG3 ZVY6OfxzF1O7WU93rDh8g== X-UI-Out-Filterresults: notjunk:1;V01:K0:pDJ1R0dJ79c=:PAFv/3tGFoB0JiefOaiZ8W IBtdtq7IzMyqx6A9UOKdDcqFdoP/XKVyUswzv+63Tsy+eLopr1gOu6AXkN0xWrt84DfM1QQLt Ed9yy9uWJKbdwrRr4qxfavYguyZ6NFbE+b0oTByjCx4VktidpyhFPOIl2knIounuEcL7OaUR7 WU+a7mlANCAsYiLEVvuCJadw2JtJWznxIH1BRmcRYmvSL+IHaY+GJIy1ukhl5vFqOIp7TqBOU qvqnVUXYQGycF0rh7/dxZ9wSfs9XSmJzG/MSetV874S3R1DVhW4RmlyreXJJxGforImisNhdY 7lEHr3hYi9niczyUicwWMeaEk6Sw/slZexfuonSxF+D2AWwP3gegsbPaokqYvDuLzeH7Q13xx 8JrrGieGX30UEGFt5mf6rSz6eDy9tryAjANGnxdjDy7JBlYUkk4ocvdOmgoudFfz9AtLm6r16 hAoXANHCdvBY4Xf5CWJHChIvGRv+mOXBuoetHbAR09+6q7CsR3555/mQuwwCdVIwbCJgONzbr DbLo1relrK1c5RNHCXw4tOcAEV4vDUMC4PJ/xOcgx6/bGxz08zCWMMj/bh21N920NBItFvT5F GDX1BbzRrEilgdHiVJDAXraAu9u5zAnGVJKxFLl7hvuq4W0SsBOWKkzg+IOCpKVXvtG49Lyps dZqIfqjW2HhcJPe5P1sEoc8XxHBZ3yM187uVSfbS4ZCHdU5tV8ptQDXGwvCVJYtn0Y/6ZDWFJ 1b/AZ06K25Le+JcA8mubuoB3vydnob+qUmxELfuqogQqE6LhPvGi1HF9kXksZcdjtnlKUMbf8 DhHMDUc X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 11732 Cc: 11732@debbugs.gnu.org, mhatta@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Moreover, I sometimes see the same problem in my "normal" Emacs > session running 26.1 sources where this change was not done (but in > "emacs -Q" I cannot trigger the problem unless I make the change). On XP or 7? > So I think it's not the proposed change that does it, it's something > we don't do entirely correctly that interacts badly with > focus-follows-mouse configuration. Which is why I said that unless > you have ideas how to fix this, we should simply install the proposed > change, and deal with the dialog problems separately, perhaps using > the changes I tried and you fixed. These changes are not yet fixed. At least here the selected frame remains topmost even after the dialog finished which is even worse than the disease it tried to cure. I have to remove the frame from that group, probably in w32_dialog_in_progress. >> The proposed change is very beneficial for me. Then I can ask people >> using MS Windows to type in Japanese character using Emacs in a Texinfo >> document. Could you install it!? > > I'm waiting for Martin to tell whether he has some ideas about the > negative effects this has on popup dialogs. We will install the > change after that, with or without the remedies for those problems. Please install without any remedies. If I find a way to fix this I'll get back to you. martin From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 07 07:32:12 2018 Received: (at 11732-done) by debbugs.gnu.org; 7 Jul 2018 11:32:12 +0000 Received: from localhost ([127.0.0.1]:49192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fblRj-0001Ei-0s for submit@debbugs.gnu.org; Sat, 07 Jul 2018 07:32:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fblRh-0001C7-FF for 11732-done@debbugs.gnu.org; Sat, 07 Jul 2018 07:32:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fblRb-0003Oa-Fa for 11732-done@debbugs.gnu.org; Sat, 07 Jul 2018 07:32:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fblRW-0003M5-Af; Sat, 07 Jul 2018 07:31:58 -0400 Received: from [176.228.60.248] (port=1308 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fblRV-0000d3-Lb; Sat, 07 Jul 2018 07:31:58 -0400 Date: Sat, 07 Jul 2018 14:32:01 +0300 Message-Id: <83601rjn7y.fsf@gnu.org> From: Eli Zaretskii To: martin rudalics In-reply-to: <5B40942F.2030105@gmx.at> (message from martin rudalics on Sat, 07 Jul 2018 12:21:35 +0200) Subject: Re: bug#11732: Follow-up to bug#11732 References: <87obohkxga.fsf@XAVIER-PC.i-did-not-set--mail-host-address--so-tickle-me> <83y3f0p6n7.fsf@gnu.org> <5B35F120.9040807@gmx.at> <83fu16nepn.fsf@gnu.org> <5B373A21.9050407@gmx.at> <83d0w8mrvu.fsf@gnu.org> <5B377CB8.1030602@gmx.at> <837emgmmu2.fsf@gnu.org> <5B389847.6000204@gmx.at> <83sh53kp1j.fsf@gnu.org> <5B3B3407.3020300@gmx.at> <83d0w4jgq5.fsf@gnu.org> <86wou732w4.fsf@misasa.okayama-u.ac.jp> <838t6njrg6.fsf@gnu.org> <5B40942F.2030105@gmx.at> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 11732-done Cc: homeros.misasa@gmail.com, mhatta@gmail.com, 11732-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Date: Sat, 07 Jul 2018 12:21:35 +0200 > From: martin rudalics > CC: 11732@debbugs.gnu.org, mhatta@gmail.com > > > Moreover, I sometimes see the same problem in my "normal" Emacs > > session running 26.1 sources where this change was not done (but in > > "emacs -Q" I cannot trigger the problem unless I make the change). > > On XP or 7? Both. > > I'm waiting for Martin to tell whether he has some ideas about the > > negative effects this has on popup dialogs. We will install the > > change after that, with or without the remedies for those problems. > > Please install without any remedies. If I find a way to fix this I'll > get back to you. Done. I'm closing the bug, as the problem with focus-follows-mouse are probably not directly related. Thanks. From unknown Thu Aug 14 17:25:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 05 Aug 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator