From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#72830: Big rectangular selections are slow Date: Tue, 27 Aug 2024 21:23:05 +0300 Organization: LINKOV.NET Message-ID: <86cyltx1ti.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 72830@debbugs.gnu.org, Stefan Monnier To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 27 20:28:45 2024 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 1sj0vs-0003VH-U1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 20:28:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sj0vR-0006bz-V7; Tue, 27 Aug 2024 14:28:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sj0vN-0006Mw-4w for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 14:28:13 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sj0vJ-00053w-TM for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 14:28:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=UImaZw+j9UY3UV401bTLLvILgC2Ck/Tws0+XEoM+TT0=; b=STJAAZ49LHUEeY6ePghdQu+OLOAEMfKVs0vIlYyUZtXVKQsJMgW1O9pRXbYo3VrL+0es4ht53F9nxKsGaoIjZC4DJQmBxp8IfwooryUbKqS6k09wnzNhleGla2kER2bYkCvLRsrwXm3ZOB4KrO6dW8CwjFIJn+UKLNZf8AdRXdMNp5iV6/ez9y3vnecYDLIKPuQo5apqt8mfEraTsuL273aDLY028HZSRZNLkvScY1kSG+CRbhu9juEKM61ppQeUfD8jTR9wjPSm2kC7w8de96uLYXFrqQWIJEED1kXRRlfWbkmjMh6nPT/VJ10bpEHx2TgmCt5qUnYFqiXV47zwLg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sj0wA-0004mo-HR for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 14:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 18:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72830 X-GNU-PR-Package: emacs Original-Received: via spool by 72830-submit@debbugs.gnu.org id=B72830.172478333918388 (code B ref 72830); Tue, 27 Aug 2024 18:29:02 +0000 Original-Received: (at 72830) by debbugs.gnu.org; 27 Aug 2024 18:28:59 +0000 Original-Received: from localhost ([127.0.0.1]:47553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sj0w6-0004mV-Uo for submit@debbugs.gnu.org; Tue, 27 Aug 2024 14:28:59 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:48961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sj0w4-0004mE-0t for 72830@debbugs.gnu.org; Tue, 27 Aug 2024 14:28:57 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id D967CC0002; Tue, 27 Aug 2024 18:27:52 +0000 (UTC) In-Reply-To: ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Tue, 27 Aug 2024 18:42:19 +0200") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:290834 Archived-At: >> 27 aug. 2024 kl. 15.48 skrev Eli Zaretskii : >> >> > Does turning off auto-composition-mode help in any way? >> >> I don't think so. Were you able to reproduce the problem? > > I didn't have time to try, sorry. Too much stuff on my plate, and > still only 24 hours a day, even with Emacs 30... For Emacs 30 it's time to increase the default value of hours-per-day to 30. >> 27 aug. 2024 kl. 16.04 skrev Stefan Monnier : >> >> More promising to me would be to try and skip any part of the buffer >> that's not displayed. > > Yes, I see no reason for having the highlight overlay on something that can't be seen. > > But how do we know what the viewport will be in > `rectangle--highlight-for-redisplay`? Since it is redisplay that determines > window-start and window-end, and it hasn't run yet, this puts us in some > kind of chicken-egg situation. Maybe it has to be done inside redisplay. I'm sure it should be possible to use `pre-redisplay-functions' that by default updates region highlighting, and I was able to use it to make region highlighting window-local even when the same buffer is displayed in separate windows.