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: 25.1.50; GUI Emacs on Mac OS X: text is keeping shaking/re-displaying when insert text with external input method Date: Thu, 19 Dec 2019 14:22:12 +0800 Message-ID: References: <20191217202837.GA18094@breton.holly.idiocy.org> <20191218204422.GA22550@breton.holly.idiocy.org> <1FE824D7-2765-4CF6-98B8-912AA2FAA646@icloud.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5dfb1719_3855585c_191" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="150372"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "23412@debbugs.gnu.org" <23412@debbugs.gnu.org> To: "alan@idiocy.org" , tsuucat Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 19 07:23:12 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 1ihpDL-000czI-H1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Dec 2019 07:23:11 +0100 Original-Received: from localhost ([::1]:36314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihpDK-0004Jt-Cz for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Dec 2019 01:23:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46847) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihpDE-0004H0-1y for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2019 01:23:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihpDC-0006Ck-Po for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2019 01:23:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38244) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihpDC-00068g-3H for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2019 01:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ihpDB-0001LG-Uw for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2019 01:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2019 06:23:01 +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.15767365545108 (code B ref 23412); Thu, 19 Dec 2019 06:23:01 +0000 Original-Received: (at 23412) by debbugs.gnu.org; 19 Dec 2019 06:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:44217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihpCk-0001KK-2C for submit@debbugs.gnu.org; Thu, 19 Dec 2019 01:22:34 -0500 Original-Received: from mail-oln040092254101.outbound.protection.outlook.com ([40.92.254.101]:6175 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihpCh-0001K4-2Q for 23412@debbugs.gnu.org; Thu, 19 Dec 2019 01:22:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kp0owwksZ8prrW8b208rfvfHl1a3hOQ2FHsH3SjCvksC+MifE1D8o8tf6rZGQhwUT+PHbDYLzXCUoflfYmZ+PSwq6VAYJbDE+Wuri4z4a+qc9R44uA6APqGQUgwDxt68RcNyPZT7mhsiaB2aKklT7s3Th7N9zkfeD9aZUAgn8fd5y+/SYMHmJK/mXV3zolMuPF7KkqdREByPZFS905sexltAVuTx+8ithi+gNrr2wUwfiP3V+5JN9j+0HNUS5sQqLZVfrWJMyJqjVMZDsocNnAA12cGAZ27Xb0TK9cDGN3vMomsjapt2JoiXoFeNCgach6fVPihlTFxngv8vF01Ccg== 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=RC3531oyvcgQ+8IUI+OmruLyup/HbCIUpvFAAjSrwaM=; b=Yh+v9PoADJY3rpd8xwvHMRgCH88OotlGndJdNONctmhuBG4pt4nda4QSEKMJoqeKkb2myhDvMrpH8He8VABUJ+cGbLDVQRnwcJeyo7ojUOFd2MKgSatnbt2FefiPWfw+3+RtHolm2QPruN4UZU5Q5vJPA6jv6tbMCCLcUEEN2qFzt7yjTXfjNR/8VmgA+xONEm3OzmU7cnSaJnDKTnXhO1i62IDCigBNUmjXH835+wJUHsTikjexgo5y5yfOWJTyAZNE0hwjBtVu5k5wYfPYFcsdbzOqijqZiT79QNUze3tWFCNRWk2VyDCpDi2IGaHLQPpSU2BvjRDe/n1+2lkMkQ== 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=RC3531oyvcgQ+8IUI+OmruLyup/HbCIUpvFAAjSrwaM=; b=FwquWVkd9RRhEJNx039bvhbvU6YIh434YnzgDDaBKForbwhWZMzSfCpxb6HU5HsIe3N7GUwuxJbA+cTUB4c2FWDPBLOsfKo2aLzXL1lHB132BZ0YFm9MN5b3/cLcQ/FHafj68huRn5LxIBVuhkdlxkx8bKMQ9yBgG7RtKKqK/mRxnp2M8O+2CIGn36SgH34oI8MJ0Sr/NhBWl9aFFE/YCQwL1FZ10iWOKtYmfwU5PT6TH58hwIuTBbWBNruGPbRJktDTINlm3InrNCvMMKWiUrU5VK2RurFndpQyp7ldIIHvh5jnN60DB0vjRvYUJ8bwzyyUrclezgYjxhZ10R92VA== Original-Received: from HK2APC01FT008.eop-APC01.prod.protection.outlook.com (10.152.248.54) by HK2APC01HT018.eop-APC01.prod.protection.outlook.com (10.152.249.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14; Thu, 19 Dec 2019 06:22:22 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.59) by HK2APC01FT008.mail.protection.outlook.com (10.152.248.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Thu, 19 Dec 2019 06:22:22 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:37CEA7E9C54EB22FEEDEC744EC90287FB00D14ADF0CACFC35E0393C9C45165B6; UpperCasedChecksum:8053FB8B000B8E11683DF8046D9EF045635DE7B033F35C5E40E5869D60B87811; SizeAsReceived:9279; Count:48 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.2559.012; Thu, 19 Dec 2019 06:22:21 +0000 In-Reply-To: X-Readdle-Message-ID: 87806f9c-c8db-4a21-9761-f0de0015e349@Spark X-ClientProxiedBy: HK2PR06CA0005.apcprd06.prod.outlook.com (2603:1096:202:2e::17) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <87806f9c-c8db-4a21-9761-f0de0015e349@Spark> Original-Received: from [192.168.1.103] (1.193.169.191) by HK2PR06CA0005.apcprd06.prod.outlook.com (2603:1096:202:2e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Thu, 19 Dec 2019 06:22:20 +0000 X-Readdle-Message-ID: 87806f9c-c8db-4a21-9761-f0de0015e349@Spark X-Microsoft-Original-Message-ID: <87806f9c-c8db-4a21-9761-f0de0015e349@Spark> X-TMN: [fTjSgUXxelYfacgS7E3qMJeRKr123i1R] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 9339a82d-ce31-402b-e016-08d7844bce5f X-MS-TrafficTypeDiagnostic: HK2APC01HT018: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wv88PfCUk14K8XecMuNHyXB20cUkvf1YDoJ5c6hfUA9qWmpeMCS7YuPqY+3tQCMbk6Mjwx+RqeJzD8/zX8+aLbQMAxtlUyDuAlmRyOZ53qSYXRBHBmgyg4lIc+pHD/+x47UNKsjsS3alQWucCRhVMrQx9E7bcPNUKcMM3NbSokOiqHLzXj/mgnablbOMU/6C X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9339a82d-ce31-402b-e016-08d7844bce5f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2019 06:22:21.8146 (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: HK2APC01HT018 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:173543 Archived-At: --5dfb1719_3855585c_191 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yes. It is deleted. =E5=9C=A8 2019=E5=B9=B412=E6=9C=8819=E6=97=A5 +0800 PM2:16=EF=BC=8CHaiJun= Zhang =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > I think the overlay can be deleted in ns-delete-working-text, because n= ew overlay is always created in ns-insert-working-text. > =E5=9C=A8 2019=E5=B9=B412=E6=9C=8819=E6=97=A5 +0800 PM1:57=EF=BC=8Ctsuu= cat =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > > > Since the working text is not the final text to insert to buffer, h= ow about displaying it using after-string property of overlay=3F Such as:= > > > > > > (overlay-put (setq ns-working-overlay (make-overlay start (point)))= > > >=C2=A0=C2=A0=C2=A0 =E2=80=98after-string (propertize ns-working-text= =E2=80=98face 'ns-working-text-face)) > > > > > > I did it. It is good undo behavior. > > > > After this, working text appears in read-only buffer. (Mac port-like > > behavior) > > > > > > > > -- > > tsuucat --5dfb1719_3855585c_191 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Yes. It is deleted.
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8819=E6= =97=A5 +0800 PM2:16=EF=BC=8CHaiJun Zhang <netjune@outlook.com>=EF= =BC=8C=E5=86=99=E9=81=93=EF=BC=9A
I think the overlay can be deleted in ns-delete-working-t= ext, because new overlay is always created in ns-insert-working-text.
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8819=E6= =97=A5 +0800 PM1:57=EF=BC=8Ctsuucat <tsuucat@icloud.com>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
<= br> > Since the working text is not the final text to insert to buffer, how = about displaying it using after-string property of overlay? Such as:
>
> (overlay-put (setq ns-working-overlay (make-overlay start (point))) >    =E2=80=98after-string (propertize ns-working-text = =E2=80=98face 'ns-working-text-face))


I did it. It is good undo behavior.

After this, working text appears in read-only buffer. (Mac port-like
behavior)

<= br>
--
tsuucat
--5dfb1719_3855585c_191--