From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#29889: 27.0.50; Slow visual selection Date: Sat, 21 May 2022 20:24:23 +0800 Message-ID: <871qwnt6o8.fsf@yahoo.com> References: <87y3lmgphl.fsf@gmail.com> <87zgke601k.fsf@gnus.org> <87leux6jey.fsf@gnus.org> <87y1ywy525.fsf@yahoo.com> <87h75k60fl.fsf@gnus.org> <87h75ky2uy.fsf@yahoo.com> <871qwo5xa7.fsf@gnus.org> <83a6bcbgo1.fsf@gnu.org> <871qwoxw75.fsf@yahoo.com> <835ym0bdw2.fsf@gnu.org> <874k1kwg9p.fsf@yahoo.com> <83wneg9yy7.fsf@gnu.org> <874k1k2wwg.fsf@gnus.org> <83sfp49w9a.fsf@gnu.org> <87bkvrytan.fsf@gnus.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29908"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , 29889@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 21 14:25:19 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsOAX-0007Z6-LP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 14:25:17 +0200 Original-Received: from localhost ([::1]:55490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsOAW-0003uG-Bf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 May 2022 08:25:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsOAJ-0003u5-6E for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsOAI-0003v1-4E for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsOAI-0001sY-0W for bug-gnu-emacs@gnu.org; Sat, 21 May 2022 08:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 May 2022 12:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29889 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 29889-submit@debbugs.gnu.org id=B29889.16531358837174 (code B ref 29889); Sat, 21 May 2022 12:25:01 +0000 Original-Received: (at 29889) by debbugs.gnu.org; 21 May 2022 12:24:43 +0000 Original-Received: from localhost ([127.0.0.1]:40856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsO9y-0001re-Po for submit@debbugs.gnu.org; Sat, 21 May 2022 08:24:42 -0400 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:46704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsO9x-0001rQ-Ab for 29889@debbugs.gnu.org; Sat, 21 May 2022 08:24:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653135875; bh=qvkAC6U+7A6JOsilY+YouJjj/N6EB0zxBDYZY4cx5MI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=Hahq8eMg0N2TtqpjVguuJe8naTd5qDe3HioLEXC02bk6Duwj2AjDS8pGy/upT8L1CHWw5zdSd5IzMLvuKuad2Ha3M1mqLhMEh1oEgUVCY+/5Z3n4H4MT+mvozf++2n5VvNjQQ1gUNIxbUkqOB8gtxX42lgPS6QEUHEB9ft01FJ0TVHOXI0yD8PDM4fAUI0JhmCbKwGEUhx61e6xb/dnjkJ2Eo/PEvaysOlQz0xlUK0hfiPocfj5pgulB247eLq3iaayvIsCxjdQxVVk0ULgxGkYunXjlqhlSDleSDnIY9bby2+ctekaWxPV8BJs17O6J4Gxk2ucch6T7s01+K7yaNQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653135875; bh=rB47GdXUo+DjX7JlTLPHw4TEEoo1kiCrT32iFK9LiEQ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=BNQf70/2b9fisetw9iJEUbuQ3H3/8uCVPVcWUxYd6B1dilMOYx/GCK20mIOyh6nHUmeJVdgdifhjehDFgz8yjQ26Z+SHOb+RjFU+4EGtvSO7QJsjwwMdq/MR/xbJoUodXtQZ0tNWxq9Ph8zQFeKOE4HMhDT4uS5OaRo4VrN5qzuk5F8b/mgtrebMPvsWXfH7R3MtriV7A6Asg1aWRBzzejl3QLPFZki/719zoDxeV23KSBKGHBinLxW07p+e2D1coidF7MlI7xrlJrhtkg3XY8JXWMchJ5mnyPMEUckl1bdyaoAg4ZUiFV5+Mo+RrN9mSDOL5pACPf1zeBTmopkPwg== X-YMail-OSG: hUMU5hMVM1kRI_7.ePGaws9kQV3b_qfmcA2HfU..0NimsGbVfiGt..4QgDJmN11 5rFAAoqBWtIRMN8umQs_8TLI70Bvxcxwt4NEVGeWj5O.kpH34sgTM4gtxIiOeJHV0ebdp8eWzINk SoqHIkh9nGlq0LnXxo1Y98tU5rfSZrWs6JLEIlv5.Z9K8vD02guN4Qeg9klD.rZV3mzwS8jFEmLu CtfKzi_WV67RUzOF4q0fMZKVTHUFcFxLpGBJCXS3R5BR6MSklY9mbtsDLYjLFLyfBMj2F0zfPeNB oN71oungfpxk7MLyYCT2F1Lvxwm.HED7YGAxMhWIqIVmq.zAxeQMQrEbHo6K0FPy8B_z83Jgr93x z71GtFw26ytfdVVmqnIRTmqQsiK5aElygxtW2Rj.FqF1hXlYV82FBMVPWz_CqS2BwQBd7tDNi_WU FjOczToihCn0mV_yZ3E1yxPsitIO8IAWFM7qo3NgwFUXph.OxYhlPWRDymnC1HwUWw54WJX8OI3z VrDibJn2aNBuu.4_SNa81rL4S7tdn9aLMMrv.MbkM37ogA63s9CEoKpdC8.uxOpxfhArc.9Ykjfg heRDEn8Ve83Jpgakmz93el53FVUtX.WrNUUheQZ0ecFLYvOTiKTstraWOnoJk7_2QS8ntKLECr.. ah1wsPPtpgWcTWTdyaYVKuxupXeFMuZBJ8u9lRvpT1XNhbQALtoGowAnJf8wpCUGxzTdP2Kf40b5 AIwJcnJpQCfQVjBOx.jL.zgWIdVGy0zcPvQN4O.fGhcIEB3M1CE5CbWb3NTQzUxJMv82W1Ty.Baw 1ivI7kHU3DLlIddaILW27aBXI44_7RM4inWDoXtMP0 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Sat, 21 May 2022 12:24:35 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-9nmmr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3e110d3f3731de8187cc3c287776c128; Sat, 21 May 2022 12:24:29 +0000 (UTC) In-Reply-To: <87bkvrytan.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 21 May 2022 14:16:48 +0200") X-Mailer: WebService/1.1.20225 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232819 Archived-At: Lars Ingebrigtsen writes: > Yes, that should work. And there probably aren't that many of these > commands, so it should be possible to get them all marked with > reasonable confidence. But what if some other command moves the region? For example, if you type "C-x h" and then "C-f"? The selection should also be updated then, I think, to match the text displayed in the region face. The best way to solve the performance problem is probably to fall back to using buffer positions instead of strings if the region exceeds a certain amount of characters in length.