From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#29889: 27.0.50; Slow visual selection Date: Fri, 20 May 2022 11:03:10 +0200 Message-ID: <87h75k60fl.fsf@gnus.org> References: <87y3lmgphl.fsf@gmail.com> <87zgke601k.fsf@gnus.org> <87leux6jey.fsf@gnus.org> <87y1ywy525.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38891"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 29889@debbugs.gnu.org, Eli Zaretskii , Sujith To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 20 11:05:03 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 1nryZC-0009sy-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 11:05:02 +0200 Original-Received: from localhost ([::1]:34894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nryZA-0006FP-SW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 May 2022 05:05:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nryYH-0006Dp-QL for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 05:04:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nryYE-0003aN-9G for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 05:04:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nryYE-0005Oe-2c for bug-gnu-emacs@gnu.org; Fri, 20 May 2022 05:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 May 2022 09:04:02 +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.165303740320694 (code B ref 29889); Fri, 20 May 2022 09:04:02 +0000 Original-Received: (at 29889) by debbugs.gnu.org; 20 May 2022 09:03:23 +0000 Original-Received: from localhost ([127.0.0.1]:37564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nryXa-0005Nh-SZ for submit@debbugs.gnu.org; Fri, 20 May 2022 05:03:23 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:60674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nryXZ-0005NS-0a for 29889@debbugs.gnu.org; Fri, 20 May 2022 05:03:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DtSK1yVo1kpvoKwPTkQvG+7KF2v1cTPkMosSRH24PNA=; b=XK65DaUSRJL9FLehzR7bDwjX4z 6bKXCG6fm9FNdU16nmrUWSY3eKeGzcjmGV+unrQldoJhBRhLaoYPxGouhmt8HFOdnZUJcD7XLdpGf 7N4+ty+uikZjrMR55iRjDnEIqmM6oHtWXVnDqYn6d6zwKVa9mQWwWHKzwYJ9/2sq5jlo=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nryXO-0005lu-TW; Fri, 20 May 2022 11:03:13 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUTERJdX2Gnqap7 gIL///8DsUvuAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YFFAg6GCOEChAAAAF6SURBVDjLfZPrgYQg DITBbYCYBo7QwIb039tNCCreresv5SOT15hSPLnsjU2MqIxvnudpKyLSpWmcJzrAzuLPCVKaL3sf wDT9ebjX3jJuvVxQ6nGerVceX1tIngFkwoK6iJXoKM2LYOvvkebKHkoGrU1aRye31ABVyDu5hxjj ZNcoeVScJzC/qnv0eE8hUvMeTV41oQtXoQBiKxAE6QlmhvQyaYaJT9AoTwSA8S0gKU/QpWIQUS7q w1sAJeg68Oo85AC+0UyYYsg14AkUAN2rnnoxKuXIoFaYVmCsrt7UlGWEoMfNt0Ge1HwybWR/uw0c KMzQBvAL+Vg5AnwjOoYsP6nYCXjsepzXaxveIJFi76s/xnSpuDV8jXK3G5wW4L8TUxpu4g9gQPsM PNETKOlB6wHkB6kvID8AzPlJ6gJlDaYFEJcbKMcvbjGFMou6rjXzXyhHTWUB7rsRnn0geQVYQvF9 YOuJ9hXAxNigtV7zTcoNBVeLNcgd/ki/gj9GiAeX1bEAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjIt MDUtMjBUMDg6NTg6MjMrMDA6MDCDNJA0AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTIwVDA4 OjU4OjIzKzAwOjAw8mkoiAAAAABJRU5ErkJggg== X-Now-Playing: Steven Brown's _Searching For Contact_: "Audiences + Stages" In-Reply-To: <87y1ywy525.fsf@yahoo.com> (Po Lu's message of "Fri, 20 May 2022 16:35:46 +0800") 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:232714 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. Yes, that would solve the performance problem, but the surprising behaviour would still exist. That is, I think most people would not expect that just setting the mark in a buffer would make the part between mark and point available in the selection in other programs. So I think just flipping the default to `only' would be the best thing here, even if the current value has been in effect since 24.1, apparently. (And then mention this as an incompatible change in NEWS, of course.) So I think I'll do that, unless somebody objects a lot. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no