From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58176: 29.0.50; mouse-set-point region flicker with highlight-nonselected-windows=t and same buffer in two windows Date: Fri, 30 Sep 2022 23:15:31 +0200 Message-ID: <87h70otvgs.fsf@miha-pc> References: <86pmfeaxnv.fsf@miha-pc> <838rm2f1v8.fsf@gnu.org> <87wn9lubu6.fsf@miha-pc> <835yh5fm9j.fsf@gnu.org> Reply-To: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58176@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 30 23:02:12 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 1oeN99-0007qW-K2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 23:02:11 +0200 Original-Received: from localhost ([::1]:44654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeN98-0005i5-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 17:02:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeN90-0005ht-Jp for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 17:02:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeN90-0001vk-Bq for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 17:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeN8z-0004gj-Ug for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 17:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Sep 2022 21:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58176 X-GNU-PR-Package: emacs Original-Received: via spool by 58176-submit@debbugs.gnu.org id=B58176.166457169917992 (code B ref 58176); Fri, 30 Sep 2022 21:02:01 +0000 Original-Received: (at 58176) by debbugs.gnu.org; 30 Sep 2022 21:01:39 +0000 Original-Received: from localhost ([127.0.0.1]:43040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeN8d-0004g8-5x for submit@debbugs.gnu.org; Fri, 30 Sep 2022 17:01:39 -0400 Original-Received: from kamnitnik.top ([209.250.245.214]:56672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeN8a-0004fy-Hg for 58176@debbugs.gnu.org; Fri, 30 Sep 2022 17:01:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1664571694; bh=ukUyqtCQCSWYTHBDqK3w9r5xCCsl+OQw9/D9uB4k4hI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=hB7HLQj7jn+NwU0HJN+4WKdEVk6ILsXkUEuc+/dPYlyka4Jp7JpMl0rlBaGrVJ8DQ gXRyofQopdHL0l2oyUfqux97tdylC7j9ue/GetluWVNnsdqa/dnWDW29e8vAXbsMRI 7tVS34Nj5Gytk4RXqXVeWHTQxcqUdDsKeJ2+QLsmggj1Wl3kN7JV4fhfNE3gQqFYfs 3/IjIwev2IaFv4Y7wYurAOBvZDIECIMXQUL4v/m0kkX93TojV3dygaFtRNoOrm7oZW neaAIzyBuAvLmwS0K70Br6kiPDnreuXyZfy4ohi8ybE3e/HidpFHqeGwPQhhdpIS3B k06ci6n20O1BQ== In-Reply-To: <835yh5fm9j.fsf@gnu.org> 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:244063 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: >> Cc: 58176@debbugs.gnu.org >> Date: Thu, 29 Sep 2022 23:09:37 +0200 >>=20 >> Well, maybe we could try a bit harder to reduce the flicker for ordinary >> non-dragging mouse-1 clicks. One idea could be to prevent down-mouse-1 >> from activating mark until the region becomes non-zero length, so >> something like this patch. > > Thanks, but this is exactly the opposite of the behavior we want. We > currently make a significant effort to show regions of zero length. (I'm assuming that by "show regions of zero length", you mean that the "Copy text" toolbar icon is enabled.) I hope I'm not arguing semantics too much, but my patch doesn't actually hide an (active) region of zero length, it prevents one from being activated. It only prevents it in the specific case of a non-dragging mouse-1 click, which makes quite a lot sense to me. The current behaviour of a non-dragging mouse-1 click is that the zero-length region is only active for the duration of the mouse button being held down. Once the button is released, the zero-length region is deactivated, which makes it not very useful, as far as I can see. For example, pressing M-w or C-w during the mouse button being held down doesn't seem to work on the correct zero-length region and you can't click on the "Copy text" toolbar icon (maybe you could in a multi-pointer setup, but that's a pretty bizarre use-case). If you want to create a zero-length region that stays active after releasing mouse-1, you have to drag the mouse a little first to make the region length non-zero and then drag the mouse back to the starting position to make the region length zero again. This use case is still supported by my patch. (Perhaps I missed some use-cases of a zero-length region active during a non-dragging mouse-1 button hold. If you know any, please let me know about them.) This, together with the fact that it reduces the "flicker" from the original message, makes me insist on the patch. Best regards. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmM3XHMTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP/pLEAC4TNUROaNp+Y0/SD7t71FJfVAi7Wd9 T80a22mnwG2j+Ap6du+DbdV7hzpnNYNN5sCBAzUTByV/i+WYaXorvJROM3gF21ZQ uVt7OUuVnk37QtUr141tYb5GEedLNo3ZcSIj1cVYidTw7EGJL8x2EPgiTehwn8/I 1HT7Wbqpe9KcU+xRARrCk4IMLf4KDniz1TGprduWwzU8LRQ4tbfwxi6lZ8fJKiYv m0vJXtMvWcCjdN/hWXCzYFR8SFSa5dfoRraM6AlrvieSFqa3A53I5XmerqF/oYhc 4D5wLzpbRm8GiNb7e12uK2rdPjkmQrxAjajc7FPDzDHxCW869Nea7uzXvLkKEONh PJlWp901e35MMrwHHsKy+g9aySAiuuhCVUXCiAeo7e+2IAIgptLmcXgsmyUdRir4 5QLZ87c2R0i53S7pQnykZQ3lCm6w1P2tUJ+MVAjnTJBhdbMyAoUVabZlcivV2eY4 63o/a0oE4fvAK6orQX2DEomXrrPy6F0AnWRrcFh2WiFCpgn3pHbRaoQbF5RWmTkb kX55pjZ90yazIL264GMonJrkurj8KjUxc51w8wjrHYYChkKe5MrLkdzPV1fktInm 0AP+OFtupztj2P1KydI11c9rhvYTarz8fD2WNQuzkI73lwjHCgJ7J0Ze0TrwWZUd tvcgtQxDqivfRg== =M3Q/ -----END PGP SIGNATURE----- --=-=-=--