From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Zhang Haijun Newsgroups: gmane.emacs.bugs Subject: bug#35316: 26.2; Emacs lags in c++-mode buffer when editing with iedit-mode on Date: Sun, 19 May 2019 13:51:49 +0000 Message-ID: References: <20190516150457.GA639@ACM> <20190516161704.GA527@ACM> <871s0xop2o.fsf@gmail.com> <20190517100118.GB5011@ACM> <87lfz5c7b5.fsf@gmail.com>,<20190519114019.GA5262@ACM> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_PS1PR06MB2759C33DF874809E6C9215EFA8050PS1PR06MB2759apcp_" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="57680"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "35316@debbugs.gnu.org" <35316@debbugs.gnu.org> To: Alan Mackenzie , Amos Bird Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 15:52:14 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hSMEY-000Eps-0K for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 15:52:14 +0200 Original-Received: from localhost ([127.0.0.1]:49097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSMEW-0003Kc-W5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 09:52:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSMEO-0003JW-OR for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 09:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSMEM-0005pv-RL for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 09:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSMEM-0005pG-Ha; Sun, 19 May 2019 09:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSMEM-0004qr-Fl; Sun, 19 May 2019 09:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zhang Haijun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 19 May 2019 13:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35316 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 35316-submit@debbugs.gnu.org id=B35316.155827392118642 (code B ref 35316); Sun, 19 May 2019 13:52:02 +0000 Original-Received: (at 35316) by debbugs.gnu.org; 19 May 2019 13:52:01 +0000 Original-Received: from localhost ([127.0.0.1]:34248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSMEL-0004qb-6B for submit@debbugs.gnu.org; Sun, 19 May 2019 09:52:01 -0400 Original-Received: from mail-oln040092255090.outbound.protection.outlook.com ([40.92.255.90]:32192 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSMEI-0004qM-0y for 35316@debbugs.gnu.org; Sun, 19 May 2019 09:51:59 -0400 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=HT2jh1YxAqquMHCrlc0chbCKvM6eq0DF1qrSN5GLndk=; b=QIRugbv99io40gJfTE4Fcn5UWt1sYhKASRrHZ5n4yfO4v/TPKCnTR/mrIsJU4VWe/6y3ekEHgV08tuDYpkf+EPewCyHk86NrkNe9M77ssy+tmdiAEO9Wb+kBjZvXf5ascQASvtC+58RxqsYOge8s/ZrZe7FbGRYOsks8NMXSalzwxl3e1D0glllISUCpO74+A2MmSVey/U8twBIKIlPT1nQ1ySiKuDX0623udJQZKjWGp1/VM4EpBSPhaX1ES57YWdvV/G7E+YPVyfb9QzQhfD9Ni1abNGs0jR4fGyk00y1XvS3A8NYmDVyvG8of388oIJ3bdx9bCduy/qDJQBIOXQ== Original-Received: from HK2APC01FT046.eop-APC01.prod.protection.outlook.com (10.152.248.60) by HK2APC01HT195.eop-APC01.prod.protection.outlook.com (10.152.249.228) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1900.16; Sun, 19 May 2019 13:51:49 +0000 Original-Received: from PS1PR06MB2759.apcprd06.prod.outlook.com (10.152.248.60) by HK2APC01FT046.mail.protection.outlook.com (10.152.249.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1900.16 via Frontend Transport; Sun, 19 May 2019 13:51:49 +0000 Original-Received: from PS1PR06MB2759.apcprd06.prod.outlook.com ([fe80::9403:ee98:34ab:76e9]) by PS1PR06MB2759.apcprd06.prod.outlook.com ([fe80::9403:ee98:34ab:76e9%3]) with mapi id 15.20.1900.020; Sun, 19 May 2019 13:51:49 +0000 Thread-Topic: bug#35316: 26.2; Emacs lags in c++-mode buffer when editing with iedit-mode on Thread-Index: AQHVDjenMG4nP9mQn0afnxnWbuRgSKZyb+z8 In-Reply-To: <20190519114019.GA5262@ACM> Accept-Language: zh-CN, en-US Content-Language: zh-CN x-incomingtopheadermarker: OriginalChecksum:5D3CCABAD427B3C8F6DA89C19F706749E38711EABBAC851EA3A068106DCA3C71; UpperCasedChecksum:DBF95EDF05F53CAF9C3229297CDD0A8313C72322FAFDDD9F21FB85F0E1D8A30C; SizeAsReceived:7191; Count:43 x-tmn: [9CHCpbiEzracKB/Gn/i61N42vMfskU+hj6r05pfbpfnqODSHuFaW99CAN5Htp7wP] x-ms-publictraffictype: Email x-incomingheadercount: 43 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:HK2APC01HT195; x-ms-traffictypediagnostic: HK2APC01HT195: x-ms-exchange-purlcount: 2 x-microsoft-antispam-message-info: ctnBghx9HBhgxDJeQVbcOsIJ2pf+SHP1WCJZerxtLtE9ORaNooHZ87FqMeMDADO6CBSnHdpX49s/z5tTTe86FNzJ300HISIflZNlCQJm/q8Ae1SKvA01flSlmovU7F8TYq8IhYXFVcSbp5iOj40Oh7oNYgl+n1Vsgg3GzlQjPi1Lg70oVpqeAY6nXye554ai X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 38399bd9-29f5-429d-68bc-08d6dc61244b X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2019 13:51:49.7764 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT195 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:159540 Archived-At: --_000_PS1PR06MB2759C33DF874809E6C9215EFA8050PS1PR06MB2759apcp_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 VGhlIGF1dGhvciBvZiBpZWRpdCBzZWVtcyBub3QgdG9vIGFjdGl2ZShub3QgZXZlcnlkYXkpIG9u IGdpdGh1Yi4gSGVyZSBpcyB0aGUgZW1haWwgb24gaGlzIGFjY291bnQgaW5mbyBvZiBnaXRodWI6 IHZpY3RvcmhnZUBnbWFpbC5jb20uDQoNCkhvd2V2ZXIsIHRoZSBnbWFpbCBpcyBibG9ja2VkIGlu IGNoaW5hKHRoZSBwYWdlIHNob3dzIHRoYXQgaGUgaXMgaW4gY2hpbmEpLiBJIGRvbid0IGtub3du IGlmIGhlIGNhbiByZWFkIHRoZSBtYWlsLg0KDQpCZXNpZGVzIGllZGl0LCBJIHRyaWVkIHdpdGgg bXVsdGlwbGUtY3Vyc29ycyhodHRwczovL2dpdGh1Yi5jb20vbWFnbmFycy9tdWx0aXBsZS1jdXJz b3JzLmVsKSB3aXRoIHRoZSBzaW1pbGFyIGVkaXRpbmcgb3BlcmF0aW9uLiBJdCB3b3JrcyB3ZWxs KG5vIG9idmlvdXMgbGFncykuDQoNCrvxyKEgT3V0bG9vayBmb3IgQW5kcm9pZDxodHRwczovL2Fr YS5tcy9naGVpMzY+DQoNCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQpGcm9tOiBB bGFuIE1hY2tlbnppZSA8YWNtQG11Yy5kZT4NClNlbnQ6IFN1bmRheSwgTWF5IDE5LCAyMDE5IDc6 NDA6MTkgUE0NClRvOiBBbW9zIEJpcmQ7IFpoYW5nIEhhaWp1bg0KQ2M6IDM1MzE2QGRlYmJ1Z3Mu Z251Lm9yZw0KU3ViamVjdDogUmU6IGJ1ZyM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bW9kaWZpY2F0 aW9uLWhvb2tzIHQpDQorICAgICAgICA7OyBOb3RlOiBgaW5oaWJpdC1tb2RpZmljYXRpb24taG9v aycgd2lsbCBhbHJlYWR5IGJlIG5vbi1uaWwgd2hlbiB0aGlzDQorICAgICAgIDs7IGZ1bmN0aW9u IGlzIGNhbGxlZC4gIFNldHRpbmcgaXQgdG8gbmlsIGhlcmUgZG9lc24ndCB3b3JrLg0KICAgICAg ICAgKG9mZnNldCAoLSBiZWcgKG92ZXJsYXktc3RhcnQgb2NjdXJyZW5jZSkpKQ0KICAgICAgICAg KHZhbHVlIChidWZmZXItc3Vic3RyaW5nLW5vLXByb3BlcnRpZXMgYmVnIGVuZCkpKQ0KICAgICAo c2F2ZS1leGN1cnNpb24NCkBAIC01MDEsNiArNTAzLDkgQEANCiAgICAgICAgICAgICAgICAgICAg KGVuZGluZyAoKyBiZWdpbm5pbmcgKC0gZW5kIGJlZykpKSkNCiAgICAgICAgICAgICAgICh3aGVu IChub3QgKGVxIGFub3RoZXItb2NjdXJyZW5jZSBvY2N1cnJlbmNlKSkNCiAgICAgICAgICAgICAg ICAgKGdvdG8tY2hhciBiZWdpbm5pbmcpDQorICAgICAgICAgICAgICAgKHJ1bi1ob29rLXdpdGgt YXJncyAnYmVmb3JlLWNoYW5nZS1mdW5jdGlvbnMNCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIGJlZ2lubmluZw0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg KCsgYmVnaW5uaW5nIGNoYW5nZSkpDQogICAgICAgICAgICAgICAgIChpbnNlcnQtYW5kLWluaGVy aXQgdmFsdWUpDQogICAgICAgICAgICAgICAgIDs7IHRvZG86IHJlY29uc2lkZXIgdGhpcyBjaGFu Z2UgUXVpY2sgZml4IGZvcg0KICAgICAgICAgICAgICAgICA7OyBtdWx0aS1vY2N1ciBvY2N1ci1l ZGl0LW1vZGU6IG11bHRpLW9jY3VyIGRlcGVuZCBvbg0KQEAgLTUxNywxMyArNTIyLDE3IEBADQog ICAgICAgICA7OyBkZWxldGlvbg0KICAgICAgICAgKGRvbGlzdCAoYW5vdGhlci1vY2N1cnJlbmNl IChyZW1vdmUgb2NjdXJyZW5jZSBpZWRpdC1vY2N1cnJlbmNlcy1vdmVybGF5cykpDQogICAgICAg ICAgIChsZXQgKChiZWdpbm5pbmcgKCsgKG92ZXJsYXktc3RhcnQgYW5vdGhlci1vY2N1cnJlbmNl KSBvZmZzZXQpKSkNCisgICAgICAgICAgIChnb3RvLWNoYXIgYmVnaW5uaW5nKQ0KKyAgICAgICAg ICAgKHJ1bi1ob29rLXdpdGgtYXJncyAnYmVmb3JlLWNoYW5nZS1mdW5jdGlvbnMNCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgYmVnaW5uaW5nDQorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICgrIGJlZ2lubmluZyBjaGFuZ2UpKQ0KICAgICAgICAgICAgIChkZWxldGUtcmVn aW9uIGJlZ2lubmluZyAoKyBiZWdpbm5pbmcgY2hhbmdlKSkNCiAgICAgICAgICAgICAodW5sZXNz IChlcSBiZWcgZW5kKSA7OyByZXBsYWNlbWVudA0KICAgICAgICAgICAgICAgKGdvdG8tY2hhciBi ZWdpbm5pbmcpDQogICAgICAgICAgICAgICAoaW5zZXJ0LWFuZC1pbmhlcml0IHZhbHVlKSkNCiAg ICAgICAgICAgICAocnVuLWhvb2std2l0aC1hcmdzICdhZnRlci1jaGFuZ2UtZnVuY3Rpb25zDQog ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBiZWdpbm5pbmcNCi0gICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICgrIGJlZ2lubmluZyAoLSBiZWcgZW5kKSkNCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICgrIGJlZ2lubmluZyAoLSBlbmQgYmVnKSkNCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIGNoYW5nZSkpKSkpKSkNCg0KIChkZWZ1biBpZWRpdC1u ZXh0LW9jY3VycmVuY2UgKCkNCg0KDQo+IHJlZ2FyZHMsDQoNCj4gLS0NCj4gQW1vcyBCaXJkDQo+ IGFtb3NiaXJkQGdtYWlsLmNvbQ0KDQotLQ0KQWxhbiBNYWNrZW56aWUgKE51cmVtYmVyZywgR2Vy bWFueSkuDQo= --_000_PS1PR06MB2759C33DF874809E6C9215EFA8050PS1PR06MB2759apcp_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
The author of iedit seems not too active(not everyday) on github. Here is t= he email on his account info of github: victorhge@gmail.com.

However, the gmail is blocked in china(the page shows that he is in china).= I don't known if he can read the mail.

Besides iedit, I tried with multiple-cursors(https://github.com/magnars/multiple-cursors.el= ) with the similar editing operation. It works well(no obvious lags).
=BB=F1=C8=A1 Outlook for Android

From: Alan Mackenzie <= acm@muc.de>
Sent: Sunday, May 19, 2019 7:40:19 PM
To: Amos Bird; Zhang Haijun
Cc: 35316@debbugs.gnu.org
Subject: Re: bug#35316: 26.2; Emacs lags in c++-mode buffer = when editing with iedit-mode on
 
Hello, Amos and Zhang.

First thing, apologies for the patch I sent you a few days ago.  It wa= s
based on a misunderstanding, and it is total garbage!

The misunderstanding was the assumption that
`inhibit-modification-hooks' would be nil on entry to
`iedit-update-occurrences-2', and that leaving it nil would allow the
`before-change-functions' and `after-change-functions' hooks to run
normally.

In actual fact `inhibit-modification-hooks' is t at that point, and
cannot successfully be bound to nil.  So, both `before-change-function= s'
and `after-change-functions' need to be called explicitly for successful processing.

So, please disregard that previous patch from me, and try out instead
the patch below.  In C++ Mode it is somewhat slower, since it = is
actually doing the change processing, but not unusably so.  Undo seems=
to be working a bit faster too, though it is often not instantaneous as
one would wish (see below).

On Sat, May 18, 2019 at 01:35:58 +0800, Amos Bird wrote:

> Hi Alan!

> > Are we still talking about C++ Mode

> Yeah it's c++ mode but it can also be reproduced with c mode.<= br> > The minute long frozen is caused mainly by the lsp-mode, howeveer
> it's still laggy after turning lsp off.

> > How big is your file?  Can you characterise it in any way?
> You can try emacs/src/xdisp.c . iediting all "make_fixnum",<= br> > turning them into "make_fixnum_why_undo_redo_is_so_slow", an= d
> undo.
> It's about 10-20 seconds freezing time here.

When I do this now (with the patch in place), undo works in two stages,
taking about 0.4s and 2.4s respectively on my machine.

> > It seems I have more work to do on this in any case.

As a matter of interest, could one of you please give me the name and
email address of the iedit-mode maintainer.  I haven't got a github account, and don't want to create one, so I don't think I can get in
touch with her/him that way.

> Looking forward to it!

OK, here goes!



--- iedit-lib.el.orig   2019-05-19 10:55:31.681959998 +0000 +++ iedit-lib.el        2019= -05-19 11:08:27.549988930 +0000
@@ -490,7 +490,9 @@
 
 (defun iedit-update-occurrences-2 (occurrence after beg end &opti= onal change)
   ""
-  (let ((inhibit-modification-hooks t)
+  (let (;; (inhibit-modification-hooks t)
+        ;; Note: `inhibit-modificat= ion-hook' will already be non-nil when this
+       ;; function is called.  Sett= ing it to nil here doesn't work.
         (offset (- beg (overlay-st= art occurrence)))
         (value (buffer-substring-n= o-properties beg end)))
     (save-excursion
@@ -501,6 +503,9 @@
            &nb= sp;       (ending (+ beginning (- end beg= ))))
            &nb= sp;  (when (not (eq another-occurrence occurrence))
            &nb= sp;    (goto-char beginning)
+           &nbs= p;   (run-hook-with-args 'before-change-functions
+           &nbs= p;            &= nbsp;          beginning
+           &nbs= p;            &= nbsp;          (+ beginnin= g change))
            &nb= sp;    (insert-and-inherit value)
            &nb= sp;    ;; todo: reconsider this change Quick fix for
            &nb= sp;    ;; multi-occur occur-edit-mode: multi-occur depend on=
@@ -517,13 +522,17 @@
         ;; deletion
         (dolist (another-occurrenc= e (remove occurrence iedit-occurrences-overlays))
           (let ((beginni= ng (+ (overlay-start another-occurrence) offset)))
+           (goto-cha= r beginning)
+           (run-hook= -with-args 'before-change-functions
+           &nbs= p;            &= nbsp;      beginning
+           &nbs= p;            &= nbsp;      (+ beginning change))
             (d= elete-region beginning (+ beginning change))
             (u= nless (eq beg end) ;; replacement
            &nb= sp;  (goto-char beginning)
            &nb= sp;  (insert-and-inherit value))
             (r= un-hook-with-args 'after-change-functions
            &nb= sp;            =         beginning
-            &n= bsp;            = ;       (+ beginning (- beg end))
+           &nbs= p;            &= nbsp;       (+ beginning (- end beg))
            &nb= sp;            =         change)))))))
 
 (defun iedit-next-occurrence ()


> regards,

> --
> Amos Bird
> amosbird@gmail.com

--
Alan Mackenzie (Nuremberg, Germany).
--_000_PS1PR06MB2759C33DF874809E6C9215EFA8050PS1PR06MB2759apcp_--