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: Fri, 20 May 2022 16:39:54 +0800 Message-ID: <87sfp4y4v9.fsf@yahoo.com> References: <87y3lmgphl.fsf@gmail.com> <87zgke601k.fsf@gnus.org> <87leux6jey.fsf@gnus.org> <87y1ywy525.fsf@yahoo.com> 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="1237"; 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, Sujith To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 20 10:41:27 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 1nryCN-0000CK-5o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 10:41:27 +0200 Original-Received: from localhost ([::1]:49146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nryCL-0003JE-PQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 04:41:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nryC1-0003Gg-Jw for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nryBx-0000HH-RE for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:41:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nryBx-0004in-LN for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 May 2022 08:41: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.165303601218067 (code B ref 29889); Fri, 20 May 2022 08:41:01 +0000 Original-Received: (at 29889) by debbugs.gnu.org; 20 May 2022 08:40:12 +0000 Original-Received: from localhost ([127.0.0.1]:37542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nryBA-0004hL-Gv for submit@debbugs.gnu.org; Fri, 20 May 2022 04:40:12 -0400 Original-Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:36412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nryB8-0004gx-Pq for 29889@debbugs.gnu.org; Fri, 20 May 2022 04:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653036005; bh=ak6R9jQoLbQgLdrK29IWQ/OWpzOGnt+ebJqz4QMs72w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=rCz7AV3bxkNYiV5sAlU9mFXhjYAJE1tVdTUw/kD1cus0olU5BxwHOU7DgI4kSOMUJWT3Kerlo197VK2H+8Fz0NOdmqfEtbysEpqGzY2xoi7eYi8RWwCRIh4o+MsLaXJbU9H8Ne/iueOyrnXvpQopDCAODbRqA0dv/5jCkyPFSZaFuQBdLh6K/Fur2jVynOx7Js+CScXeQDBp6O8TOhsJQSMFWQzmd2K/m70rKnwogV5WU27Tt4SXXZnOXpLsMl4d04wg1ZabwOibO7acldwE4a5oasM02gmbhH6pFQQS+VdCOYgHK9RykhtGzMueI7z9WKmN2D3DIGtjNz4EXDXJ3w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653036005; bh=FxIOjDOMrdjsZnBH9FSKjpJexRqjN58mVdBPmIeHTGO=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=p1FjCMz5yZb2ObN53ie2+hp/XQY+CVrZ4oW9RFdS2POf8LRZYuvk+YPF0GXkLj6114S2UvYSi31flb/+61v9HGakvS1LFH6mLW01UvGwfWVM7Ho1PaGEjVWHMIV+p+WbTdCJBA5zgYizd0BvMmxwqClpsT6u+DiR4ZomUrWZfaOBTPFPyqmj/rex75+4NHldqNHHqMXjvh4kea99gREfge0Kichk0XGVKM4zT6cmxFflpq6MNC6ravNHHLE4wvgnYvHsCyrFZGl+wX7mKbhp8Lgbw63jCeodlsr9xB65LAAxiWEuuU3fyohJQeKQ+wJ1HObiGc0CszWW0KHI9WRYFQ== X-YMail-OSG: 14bSc4cVM1kbmL73.DMCW5zFQr40e3V2ETIuv7rwQZT_jpyuPJBhA78W8vBmUaD sT0kH3Rvh7hKU9s0aW9MDIdmF0ZLDDaIdiC9z5rilmJ1i5Y931tG1d68RmfqFv6EqKuSQFVDh_bx 0YSJR5swjzSOsr_vSd0aJTdlHOY8NQgMdLgblHp248GCwaBqrOg1MC6wLBNsBHOarKQu6P0xwMc1 .TY_e3JffJ6pNTqNghBxpvxJTdITku08GPMVdrhPG_MkWCcrLKcZNG47So1RpAeu8mkr7AdcyZkT G0S0G6fsvFPl5NgvANuFyu6ltO6J5cOoXV739CuOgBPTMMPlfZXlnhJS1slvlJ7yXeRvvFy1qDSK ixp8I149K1oATwUqxGhwdJxrkae8LLano2zo5yTJVcbdWE1u2pSdabRLnHSK6dqNZO6e1w7MYDWh ho_xNEZMn9nqGZhSBaJPXwr2SYtmDJnDEP3CPlxg3N7VeShZf9sOv.AGBhqRt8aHb6Jf5ZoJpQN9 DnOv.bJ7pKkU2iI4TWldNx3htkoS47M5nY8MXA9XWgd16cbnweXjI.m0cj6jHvJD_ZlfWBnRc6dV PRlL6zoNbDS6pfuq0TQkcr9_FRI_JIfhRj7V8Akpwb0zUBlajejTGM2xuxLEofkGaHIEYvU1aQCQ eRjByKTKI5jXdGH0x8YlhGePHk6Pa1.QF86i8GD630sdrihjAVJ8aHuf9TC3qVBXj0kMWDiIA6P_ fDAaqsir8Gyb8u0ydF5Fn.D40YHxRVSiaMLe3f9dv0aGhpeJoAtd0BkWv7kvXsE_F4PW29yDhc8w byiYJ6B0z_p7TAxXUYxM8AV.OQSK8gx15rd93MB_pw X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Fri, 20 May 2022 08:40:05 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-lwwxg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 858259df95ad42dd018f849af75edd4a; Fri, 20 May 2022 08:40:00 +0000 (UTC) In-Reply-To: <87y1ywy525.fsf@yahoo.com> (Po Lu's message of "Fri, 20 May 2022 16:35:46 +0800") 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:232712 Archived-At: Po Lu writes: > I didn't yet read the rest of the bug report, but AFAIK we already have > a way to set a selection to a pair of positions in a buffer. Requestors > get the contents of the buffer between those two positions, but no > string is consed until a program actually asks for the contents of the > selection. > > We could have a new value of `select-active-regions' that tells Emacs to > set the primary selections to buffer positions if the active region is > not temporary, thereby avoiding the unreasonably high amount of string > consing. > > The only problem is that this feature is only implemented on X and > Haiku, and not consing a string every time the selection is set is > impossible outside X. We could also set the selection to two buffer positions or avoid setting the primary selection if the region is more than N characters in length.