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:35:46 +0800 Message-ID: <87y1ywy525.fsf@yahoo.com> References: <87y3lmgphl.fsf@gmail.com> <87zgke601k.fsf@gnus.org> <87leux6jey.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="1191"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 29889@debbugs.gnu.org, Eli Zaretskii , 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:23 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 1nryCI-000Aeb-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 10:41:22 +0200 Original-Received: from localhost ([::1]:48990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nryCG-0003CQ-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 04:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nry86-0000kv-4V for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nry85-0007sm-NN for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nry85-0004Xa-Km for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 04:37: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:37: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.165303576317246 (code B ref 29889); Fri, 20 May 2022 08:37:01 +0000 Original-Received: (at 29889) by debbugs.gnu.org; 20 May 2022 08:36:03 +0000 Original-Received: from localhost ([127.0.0.1]:37529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nry78-0004U6-N7 for submit@debbugs.gnu.org; Fri, 20 May 2022 04:36:02 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:38818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nry76-0004TK-Ds for 29889@debbugs.gnu.org; Fri, 20 May 2022 04:36:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653035755; bh=LMOISWNoIVetg9Ye7XbZxpxLrv6rTbnf5MJIpy2VsIE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=h4jcvfEMELQJZ7I1uMFwbtPIE0CbLurCpWO557QuCmthx1MLuux3I6x4Ct1kKxHNCjozRvfCNDyXMhtF63V+PqZooCychmbBpRoZOqmBd0OpNFK+Huot4GPhpqoyaBY9aj3YHx9ceODu9P+TeSvCfyM07rVNFvA+NlOysxAEUkGEzacJFvtW1Nz/AZ8fCgLZznOMFxg3TUHbflCHcq+m6Wv/x1snDFyGF0ap/PisJk5Lg3CYoH/i23po35bNK4Bi5NsHN8kyqIcIazh9povWkX4hDB4aek6JEuqOkqNdxy0UlBJ3cUfy7GE8+FUnSCRuW4CDsC288XvswqbFTYzVXA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1653035755; bh=ksiFl5MtdpbYZ2FolAakHxWMwE6t//v7e1lz+GlAQY8=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=O/BT3DetD05XHpw68H2oMK4/DGMguohyVqk5nilQtmLwSFzog9wKs5SGaNTP6L/0p6THIWKYvfhUaLR6ok5TV+MjqaZLy0sTrtjdjN+/rTKa4VOsmErb0TeQQU8hM465uaHatPtSjTZjPkt0WsbKnDFRxuz9pnKqUBmXB1yP6MlYCyUcqNAnTbxZ8xAuG2I3Pvz+Qgl9i3K+AerbKxGE0/qqkY7hp/wNi0cWAWWi9LDNFcw5L7t4nshd+gBfj37+Fey0exiEKHRGUA44I2oCRCW8gBeGxzFligshoDHSs/gXfPUXTfJEwADpEFpi2sDu1mM0uEytGZTMp6h5O5U6yA== X-YMail-OSG: _4vmW5EVM1lYHRqoZUQRKzUnhBJGGJbPkL7EGI6uHvdjuxjBnrHrKph5g5RO2w8 itxXOlN57Xgs7fhJu9H00YvO8YWHqtRK9tnbsZjajwb_qjbYx9QNJrltP59T_wFDt14GtjFLL250 .9ba7CZ0gdnTRpkcOxGzVx8QQ.E02LNy0Szl4EIc.xtczBnNUqD9aL2EMR1nAt4XL5guFcqAfc_5 eJwlMFP7iljesSvV1D8RZvBnR0WwS3hfVewfMCpWL_9ycapxMNd9ZO5WGKGpfgpsua3FJeb098qy KcTo4x_Ms0h4L4H5WNoCl1rLWYPazB2Yr284H8GvHZH8.5tuGxHlUy6fBrh0UhAYSebEHckJXcQ4 ZoIgtl1mGbgoMVlY39DkGaQ82kEXhpUiUq950C8dn_J1ycbDafwQgGY55phlvr69xV08jFTqxnTh cwY5k5zdxZjePYJrBjEIsA.y0LCJx0fCeZRF4nf.tLzTvMGExerBweAQdEFmkYpoKNbJTgCtiBSI Nkcpw7Uf2z3q4OcnDDkcolS4hedWqNl8KZe87Et1DFfSv_BQcYBkqaPvZjKHNItJmaCMowGy3SRv mMV2X0vO5folfsH52RKrSi_x1BVo5oMHsSCyJpF19yQWeYKPv8Xvusrp4ZR3iEAiIMX7_MExBmvt xkyIW9SRWIZ.XCwuOsGwv6HMkd3slH6mAj1Qm_uUhnzN9wNDrFl0aLogksBU6VkbMVRB8b8FylfS 2LqVhuYwgSKshyhU_bhDrfCNRRa7fAl_ZY3RBd5E.XGNtKYGH2I6Fd.IQ4SMqDpzJM7Qp_knZ6mf suAGGS15wOC5T3TOFslcyKOgBN1pgUPzriBDD10FyU X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Fri, 20 May 2022 08:35:55 +0000 Original-Received: by hermes--canary-production-sg3-7959d4d9bd-whrqc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 08640a75ce7ce8356e9808c40f511ae5; Fri, 20 May 2022 08:35:51 +0000 (UTC) In-Reply-To: <87leux6jey.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 20 May 2022 04:13:09 +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:232711 Archived-At: Lars Ingebrigtsen writes: > In any case, I think changing the default to `only' here would make a > lot of sense, but on the other hand, the t value has been the default > for a long time, so changing it now might just be too annoying. 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.