From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72830: Big rectangular selections are slow Date: Tue, 27 Aug 2024 20:47:18 +0300 Message-ID: <86h6b5j1sp.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12407"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72830@debbugs.gnu.org, monnier@iro.umontreal.ca, juri@linkov.net 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 19:50:30 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 1sj0Ks-00030U-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Aug 2024 19:50:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sj0Kk-0008Md-0C; Tue, 27 Aug 2024 13:50:22 -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 1sj0KY-0007Wr-21 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 13:50:11 -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 1sj0KW-00010Q-Oo for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 13:50:09 -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:References:In-Reply-To:From:Date:To:Subject; bh=/O0ohOXxVwFFuy6lPx+QstpR7184ssttA890RVOtZe0=; b=m7GduM120BvPmoQyM7wHHWcrJPW66OwPFU3QuZsuFzd8bl7pi9DqqHH8ZVvL3nPJcZAVMrTGX5YNeyWuHtSPyYYZQQemdiDSZSPuTp2vfUlaAX3lDq9/CdFDnV+Nsja0/GbH/74vSGMky1iz5uLEKEsr4PYu1ZTYhm8XiXr+OIBARzuM7NtjkOSWKY48bdR61gWfE5OoyKq545xevEBTV50PLAhGJYjuaOupDdK2Q2sfROqd6It8NEhBkxlPCMTe3X4Yv1G2LkXn8q83+pH4H+37yK9YJLTqmQoHFz0B8wUUXZxYGDebKpv62mjKpUD/XY/1zZX9Zh5dagTyYf9ozg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sj0LN-0003np-Jw for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2024 13:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2024 17:51:01 +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.172478103314570 (code B ref 72830); Tue, 27 Aug 2024 17:51:01 +0000 Original-Received: (at 72830) by debbugs.gnu.org; 27 Aug 2024 17:50:33 +0000 Original-Received: from localhost ([127.0.0.1]:47528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sj0Kv-0003mw-AO for submit@debbugs.gnu.org; Tue, 27 Aug 2024 13:50:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sj0Ks-0003me-Hk for 72830@debbugs.gnu.org; Tue, 27 Aug 2024 13:50:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sj0Ho-0000Yd-Q3; Tue, 27 Aug 2024 13:47:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/O0ohOXxVwFFuy6lPx+QstpR7184ssttA890RVOtZe0=; b=ZfXMKUnU+xaPLycUg161 H1uK9tLQHwSA70ejB2f0FYO07z1/dRiv/CcExg04MwJPqFSCEsMcOXqX9q5+mRn7U5+z/SyvIeoDZ nwefPVeW2NVPver28jhcy24FavI7a3snjW9R5QlibN4EkZtMeZYtqdhYkrRRT2AdP8Bx97ITeMqYa Yc662jSfJUlluQcNqX7fAeYZtxWH+tjrP0FuyrxeZbSc4O3KwCyOBGC1YBPqZ46T8dLijgq5PL1pi WgUHmyzvyNupWK2d+8/BDSBaLph253FxptycnWNTcalmCIi9kJLUyq0hvYH9ERh8y8Wx+ChSfjWH6 PN/EvzK2KtYNjA==; In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Tue, 27 Aug 2024 18:42:19 +0200) 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:290833 Archived-At: > From: Mattias EngdegÄrd > Date: Tue, 27 Aug 2024 18:42:19 +0200 > Cc: Emacs Bug Report , > Juri Linkov > > 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... > 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. It has to be done with the display code, but does not have to be as part of redisplay. We can use functions like vertical-motion, window-text-pixel-size, posn-at-point, and other similar APIs, which all employ display code that performs layout-related calculations without actually displaying anything.