From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.bugs Subject: bug#23412: Date: Thu, 5 Dec 2019 06:50:51 +0800 Message-ID: References: <441DED94-528A-477B-8B39-E41911F365F8@icloud.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5de83851_1f16e9e8_422" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="103676"; mail-complaints-to="usenet@blaine.gmane.org" To: 23412@debbugs.gnu.org, tsuucat Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 23:52:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icdVJ-000Qn3-Tl for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 23:52:18 +0100 Original-Received: from localhost ([::1]:47876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icdVI-0004rB-Lp for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 17:52:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36077) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icdV8-0004r0-78 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 17:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icdV6-0006Xk-Vv for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 17:52:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36803) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icdV4-0006Sa-Le for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 17:52:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icdV4-00014r-Gb for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 17:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2019 22:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23412 X-GNU-PR-Package: emacs Original-Received: via spool by 23412-submit@debbugs.gnu.org id=B23412.15754998743994 (code B ref 23412); Wed, 04 Dec 2019 22:52:02 +0000 Original-Received: (at 23412) by debbugs.gnu.org; 4 Dec 2019 22:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:42776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icdUH-00012M-N6 for submit@debbugs.gnu.org; Wed, 04 Dec 2019 17:51:14 -0500 Original-Received: from mail-oln040092253034.outbound.protection.outlook.com ([40.92.253.34]:62432 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icdUC-00011O-EO for 23412@debbugs.gnu.org; Wed, 04 Dec 2019 17:51:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R8VYUFWOJtTe/Ot4A+Pt6sFXUzOxKnnXPvdJb/CwqWPrvLn4Xt0E1Xx5+5lCakPoLDQ/EXwXBeOf3HX3bE3R+7A3EiHS1BIxFG/nmFiqp5SSYHEIWgIlyGsPSO9dGZ9WjagkubQlZPP3n5u2xRJ6sNwkycMJUjbVB/dJjsY+mW8MMhfwd8nUgrjlWV1A5KnpBXth8uw1ri6xz9u1Chgg4LW6Z+oklHnYG+W//PE3/91phtPkvF84oCoxQLU1q9vQy1zBmS+1GSOuop8JNaodQiauw1zskwvGRfs/LUybYfJwUVdnbpFzV59aDX0OBslslPlTazk47EmJOy5mVTY8Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zPl9YYQoj5iHHpKEi0LgIbN6MIr2PW2f83ASYPjnuJI=; b=DusTlK/+9VmAMsyOJEN2b2hm9id9GA9a8bUGepBsa4khBqtQZiTng1CgIyHuN3r68jBGwyJ1urg9G4pjz/ZxWihfZC75kMVwFGsYMmEpjHa+SUsDU9VKgI2sVXki2dKQbfbs9nM8SGmBlzsWL5ZTUhAermkrTzN96tirBU8V65ZeZL+fKb10gRMBSaZS83nD84udL4v/IqRX5oh3kCrqiPEkdkRdYEpmEyYLRw6Q7tiKJSDn8bO+q7+dFXz0t0H+HY9T5sPmNWjO7b/pfXB5gav5omekTtK/AUDygPpG+G1vcSdExCrfQokr8zj+zLEPCjzq8/Bd/FbOV+F0+8P30w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zPl9YYQoj5iHHpKEi0LgIbN6MIr2PW2f83ASYPjnuJI=; b=Y6yjuJ5aKdKcJ4rvWA7Up9dFiJImnD45BkhdwQAT+iWKxz9leSSjZwgEh9nixn7oaJVHC6I7CryPSpEe4Z7qVWPFSdzBIDs5JdbfmR7CRUQFdPr62hcBhvlw1HciegLad6Qaofn5FISwcwXjivTRa+YlbMsMxvwUZw3EUlNa+EeK6zTZgU6u1/84sbUcYsrdAxB4oEPQ0jkMBweZsL7NVJ5n5ZnuRns/dOyr02Bx7puOvC9fme2zBsTVI13/ZnWMpwWP+LwBm5fKPa4//wLEqljrwqLs2L9a/cWTjlxoEU09EglHtK6kDYbxraSWtb+XGFmADvD5ErzNcx9ughMeWg== Original-Received: from SG2APC01FT004.eop-APC01.prod.protection.outlook.com (10.152.250.60) by SG2APC01HT157.eop-APC01.prod.protection.outlook.com (10.152.251.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.25; Wed, 4 Dec 2019 22:51:00 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.58) by SG2APC01FT004.mail.protection.outlook.com (10.152.250.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.25 via Frontend Transport; Wed, 4 Dec 2019 22:51:00 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8F78E774EE56AEDBA9AD5267DBCD9362C388F1A762C0C6C82BC2BC2F1F49104F; UpperCasedChecksum:067EF41DD294D50B6FD021B843FBAEC444BF63DBE0EC74DAEFB7FA87A2D90188; SizeAsReceived:8675; Count:47 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4%5]) with mapi id 15.20.2516.013; Wed, 4 Dec 2019 22:51:00 +0000 In-Reply-To: <441DED94-528A-477B-8B39-E41911F365F8@icloud.com> X-Readdle-Message-ID: 125f469c-8015-4cc8-8fb9-ba1657aad862@Spark X-ClientProxiedBy: HK2PR0302CA0013.apcprd03.prod.outlook.com (2603:1096:202::23) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <125f469c-8015-4cc8-8fb9-ba1657aad862@Spark> Original-Received: from [192.168.1.104] (1.193.170.156) by HK2PR0302CA0013.apcprd03.prod.outlook.com (2603:1096:202::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.6 via Frontend Transport; Wed, 4 Dec 2019 22:50:58 +0000 X-Readdle-Message-ID: 125f469c-8015-4cc8-8fb9-ba1657aad862@Spark X-Microsoft-Original-Message-ID: <125f469c-8015-4cc8-8fb9-ba1657aad862@Spark> X-TMN: [bVSr0XoSAUaQg2U8k7CwriLUK41KPUXV] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 626af92e-dffc-4d9a-7292-08d7790c6e57 X-MS-TrafficTypeDiagnostic: SG2APC01HT157: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q1VXbtEMfEkeiynQt5PMR0mGOjpBlIvGxO1nExBsyiAJoNJivoCCui8/W3yT1l0Q4sZOVnnln9+tvRq4iVcCML6cbhK8m+HSyCI+AKsP5MwOy1jCj61yFduTdURdmewxFQWYH00DV3qd3hFlpJhNzI4SAeoptLa60BRGWq31ZXjYuVVmWQkP7u6Wvyfts8Vn X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 626af92e-dffc-4d9a-7292-08d7790c6e57 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2019 22:51:00.2153 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT157 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172860 Archived-At: --5de83851_1f16e9e8_422 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline With your patch, it is smoother now. I don=E2=80=99t known if there is a = better way to do this(skipping redisplay for this event when there is an = immediate following event). =E5=9C=A8 2019=E5=B9=B412=E6=9C=884=E6=97=A5 +0800 PM11:37=EF=BC=8Ctsuuca= t via Bug reports for GNU Emacs, the Swiss army knife of text editors =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > Hello. > > > As far as I tried, Emacs with macOS native input method still flicker. > I use default Japanese input method of macOS. =46licker happens when I > press RET to input selected candidates. > > This is because insertText: in nsterm.m is called and emits a special > event '(ns-unput-working-text) and then normal input events. > read=5Fchar() function which processes these events always call redispl= ay() > just after processing '(ns-unput-working-text) event. > > We have to prevent redisplay after '(ns-unput-working-text) event > emited by insertText:. To do it, I made a patch. I don=E2=80=99t know t= his > is corrent way to prevent redisplaying. > > -- > tsuucat --5de83851_1f16e9e8_422 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
With your patch, it is smoother now. I don=E2=80=99t know= n if there is a better way to do this(skipping redisplay for this event whe= n there is an immediate following event).
=E5=9C=A8 2019=E5=B9=B412=E6=9C=884=E6=97= =A5 +0800 PM11:37=EF=BC=8Ctsuucat via Bug reports for GNU Emacs, the Sw= iss army knife of text editors <bug-gnu-emacs@gnu.org>=EF=BC=8C=E5=86= =99=E9=81=93=EF=BC=9A
Hello.


As far as I tried, Emacs with macOS native input method still flicker.
I use default Japanese input method of macOS. Flicker happens when I
press RET to input selected candidates.

This is because insertText: in nsterm.m is called and emits a special
event '(ns-unput-working-text) and then normal input events.
read_char() function which processes these events always call redisplay() just after processing '(ns-unput-working-text) event.

We have to prevent redisplay after '(ns-unput-working-text) event
emited by insertText:. To do it, I made a patch. I don=E2=80=99t know this<= br> is corrent way to prevent redisplaying.

--
tsuucat
--5de83851_1f16e9e8_422--