From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#72830: Big rectangular selections are slow Date: Mon, 23 Sep 2024 12:42:06 +0200 Message-ID: References: <3F6C6CAB-8CD1-4336-B1D1-949E716139FE@gmail.com> <1B4E9D0B-2223-42D9-BA22-17A5F6F49F84@gmail.com> <0D0565B4-EF53-43B6-9B33-7EE1600E1AD3@gmail.com> <5F6C5DCE-88F0-446D-8CBD-5E9EE26FFFC6@gmail.com> <3413563D-0343-4764-8D44-DAE3D3642A80@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37851"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Eli Zaretskii , 72830@debbugs.gnu.org, Juri Linkov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 23 12:44:00 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 1ssgXw-0009iX-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Sep 2024 12:44:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssgXe-0001OW-6y; Mon, 23 Sep 2024 06:43:42 -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 1ssgXc-0001Nj-64 for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 06:43:40 -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 1ssgXb-0006x7-SQ for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 06:43:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=qjoNnebypIF2IOuDJclBsAjhRYPbV3n2mNeUTN/hlWA=; b=UVRCs369mtWGGx9UCagD5YkxybtMdEASa46qjN5BySGhpj9WlZsd3JMRqImSTbTQv0hzz0tDK6MLey9rrg1j5jAoUb4hbJcLn1Gsz1hVMCWYJPVE/5GLsdVYJcZQUuqSa1VL8ejhMlTN3lJvxoIPaROrB7WFBVYFtuln6sg3r9Nqqze/lCEaXBgWkGFZKBRHuMhcwef66BnulnPxd54i/42d1i73c4aIFUEQowjWMNLhbyH29IqFCx+sKvnqjcOvaMcB2ZQE/0lfejqi+Z0UOJBUvgCBXdZE/viFDQE8flJ1mIdHyQJxUDn+q6oCFEfQbGJ+tjSrpWHsBUC+8297bw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssgXy-00050C-EP for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 06:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Sep 2024 10:44: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.172708821919185 (code B ref 72830); Mon, 23 Sep 2024 10:44:02 +0000 Original-Received: (at 72830) by debbugs.gnu.org; 23 Sep 2024 10:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:43252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssgXb-0004zN-Ch for submit@debbugs.gnu.org; Mon, 23 Sep 2024 06:43:39 -0400 Original-Received: from mail-lj1-f181.google.com ([209.85.208.181]:49441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssgXZ-0004zA-Kk for 72830@debbugs.gnu.org; Mon, 23 Sep 2024 06:43:38 -0400 Original-Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2f763e9e759so46535691fa.3 for <72830@debbugs.gnu.org>; Mon, 23 Sep 2024 03:43:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727088129; x=1727692929; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=qjoNnebypIF2IOuDJclBsAjhRYPbV3n2mNeUTN/hlWA=; b=MzPghHBTR8fdA0Uyn/kLb5HsT0giSgqtAOgiL/uhPFYL10NQrEk0KK/KaWL82+ATxT v+25EPdkpoWosyKZDYJZoQq2hY0zgVMCoFWgmpkbMkxHTOPlQ5e9YFnueEntw+LkcXoM HCG1Kx6Mz6ZnWqvMfJcTN+O9GGbc3EujVIRj1P8rknPv17GbyKQkne0SKthFC9fVPQhy 2+4EB+de6y0MX8K7P3hgNdgkHjroCQctdyr+6nraJf1oQ3AM6z0Y+JqSYnoplREowuPq O1UtGWl1T2gg90mB6kXn2yawPs8wssPMgvTq3ajizj5C8U98Oe/Dfiev+jrj3D0jLUZ1 Tq2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727088129; x=1727692929; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qjoNnebypIF2IOuDJclBsAjhRYPbV3n2mNeUTN/hlWA=; b=MBjZorLMpJf9+2HPsMwHWXnHz7HjTHoSTNtGe92OMuzaSoopi2dV9EBoi6IXdp6iux HnrdOmi6bZxFAq1fPMc8bbSJELXnP9p24Sn7FzNTRRR4eVp7361VrKjB/JycjUR48CEa KDHvQNwWZh4ls7XmwxeaX36ZwlPNLWHg+KMCZDBZrfprr3DekHIusbSGaHT0iJfJuPip jLFZVob5xORx341B3GlExSOE08rINrmPlNS7msZdxlka0xSaliujAN1RALt1xmYs+SxV GyXzctwnQDSxWn17fNKPpKjgE3nLE19/O+CgkjHktLEnNM436U4udrvwPpG0mNeox/QV JGaQ== X-Forwarded-Encrypted: i=1; AJvYcCU178ylugiOzBIJZWFOvffAYhqR8V1WQRyvA7zIVcZiEkExZruFX0caYmbO2cJvYxBeUTPnSA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwE5kG1gKqCeD4lKhaEj+kOEbNEl6NKXmHSkRGompkHfdr44mps UY+Ovm2W9uOhbYJhcUPhnq8kNmXY/gmInzPalZBJ/zqCLMxU48OO X-Google-Smtp-Source: AGHT+IGgSMLVci7JA98khwX/WPw6H9ydDf+4jc2NvKKPYV0Ngac3WMMXn6cyxHf+RHLV+EGJK6LuzQ== X-Received: by 2002:a2e:4c19:0:b0:2f3:d82b:1959 with SMTP id 38308e7fff4ca-2f7cb32a432mr43856911fa.23.1727088128139; Mon, 23 Sep 2024 03:42:08 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-191-82.bredband.tele2.se. [188.150.191.82]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f79d2e1dbdsm29001351fa.14.2024.09.23.03.42.06 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Sep 2024 03:42:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:292265 Archived-At: 22 sep. 2024 kl. 19.37 skrev Stefan Monnier : >=20 >> Sorry if I've lost track with your step numbering, but the problem is = still >> that we extract and retain the selected text both at selection and = each >> incremental modification of it. >=20 > "incremental modification" is my step 2. And in the design, step > 2 should not actually compute the content of the selection. > IOW, what you describe sounds like a plain bug. No argument there! > Modifications deactivate the selection, so if we want to preserve the > selection until after modifications, that's when step 4 comes into = play. Yes, let's not do that then. (I'm not sure if it's even possible to delay the text extraction of = PRIMARY until it is actually requested on macOS, where PRIMARY and = SECONDARY are just alternative pasteboards. I think the idea is to = cooperate with XQuartz, but it should be safe to have that feature = disabled by default.)