From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#58175: 29.0.50; M-x window-swap-states during an active mark leaves behind a region overlay Date: Fri, 7 Oct 2022 10:09:11 +0200 Message-ID: <0216030f-94a5-35fb-b70c-503acd83a507@gmx.at> References: <86sfkaay2d.fsf@miha-pc> <83a66if2r0.fsf@gnu.org> <8735cauh0b.fsf@miha-pc> <837d1mf0op.fsf@gnu.org> <83fsg6186y.fsf@gnu.org> <83bkqrv8af.fsf@gnu.org> <4b64c2c5-4613-c690-d32d-ce21e36faba0@gmx.at> <83k05eu11t.fsf@gnu.org> <48874213-cfe4-dc07-fe0a-cb085d6549ef@gmx.at> <83a669qsj4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18739"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58175@debbugs.gnu.org, monnier@iro.umontreal.ca, miha@kamnitnik.top To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 07 10:21:46 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 1ogic6-0004hb-FN for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 10:21:46 +0200 Original-Received: from localhost ([::1]:59348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogic4-0005DJ-U3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Oct 2022 04:21:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogiQk-000872-6C for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 04:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogiQj-0005t0-Sy for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 04:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogiQj-0005vO-KX for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2022 04:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2022 08:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58175 X-GNU-PR-Package: emacs Original-Received: via spool by 58175-submit@debbugs.gnu.org id=B58175.166513016822728 (code B ref 58175); Fri, 07 Oct 2022 08:10:01 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 7 Oct 2022 08:09:28 +0000 Original-Received: from localhost ([127.0.0.1]:34254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogiQC-0005uW-AR for submit@debbugs.gnu.org; Fri, 07 Oct 2022 04:09:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:33113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogiQ7-0005uG-7h for 58175@debbugs.gnu.org; Fri, 07 Oct 2022 04:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665130153; bh=mdyBM45b1yLxhKY7InpdyPpkkLQ4B4sEr+Jy9i/QsIk=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=hTQEMFPB+FroMdN7njAJD+g/9YrtgUvya6IcxrH2E6HPMQ573aBUPeNL8GTzpzwQM ppUFxP2rJ/e9bb7i8jX0Nfo2UNZO+ghJc6bmcm1UrPc5+VgKo7ezyraV9bDEkZ/xwN c4PyTGCqatbpTYZeJ418a1VM6VrGReyU0RvOXIdU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([213.142.97.66]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MlNpH-1p3QJA1GtZ-00ljVg; Fri, 07 Oct 2022 10:09:13 +0200 Content-Language: en-US In-Reply-To: <83a669qsj4.fsf@gnu.org> X-Provags-ID: V03:K1:9RSb+ckCsdBTde3IGJIBePN1Z48y4Pe+tZ98m3iibQ8TVDecygi 5C2INMbtY3PB7/+mlBXSC2e02w7zJooflGGUrrBKkdqKzXj9zSrmMT8DpKYaeqMURBMAUyj 3ndnW7yt4tF6in6M4WKRpk//qTTWSXE96/B3gneBSk5WhElqY8Y3E6nBZVJ5e6hgzyDXG/H gCRBWviVP4KASFuPcNMsQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:z8mirhCLywY=:ZU7FeXjO9YL66dHiWZpixj YErCmG6Jgo+bGIxbvTL/0pBT+zTVbukdXyNzULCKQ9gFDZrCieMyMH2KOFgvkn4OKxE724Noo eO2EivFlcJRL/hHkO/KB/wouJnoSl+3UCDsIAC3YhZrEqHU+zBhBc4gcqvV9cUnoOtGjW5+Bn gq77AZQHoMKjHERu8JT2PXHLisX0CQx9AKEXRs41ZtLsfSSEOwBkngVrZtWv7ZsDYQ/N/WRa8 /rumaVz0S0ifzJBqSq1ukLeGES9rHx5eEiGPVNYtiL7d4OsjUUD6rbpyGm8fwRFthFqigZw/D LmDRpn/j/W4TC4uGCavooHZDowEJIY7r1Kk8L4ChNlH9tTwtVkfpdz8LBLd3CSQeDT0iclEmT kkvT7Fa7WmkYDMOlh07fvVufc0sFv8f6ZpdPxHqzB4T4sfaiCmv85YpbvW1ysv3l/jbqb/tZ/ QyYxSC2fHkO/cPyRZVFjFJUeQmP3VTRRS2v3WiQkOH3KCMBa/r/YvzEBgrsioOL85t4dkyLgY 2q55kMrvOoMFWwKo6Hl+LWufc8H3EHgzuS8WmFu3myYSnE030oZpR+ZFC3v3ETkpYuYQE41Nw jcMjS3MImUHjmYCuNDTnceaNKnOhTOmTD11koZsmoptqyX0kyRJEW1A+uS3xRBdeQYfoleaDy OiS0pCe3hgqNqO0bItrrkMG8ZhO1/k5/lelykPMnf5mRozgmYqGXvy37TVslnMkkWg8Bjx7Fe gEEXDs8hdSkTUFcwIQGhqBsn7yNBQ/jb3F8NKn/mTvG3iFCqE33k6mvHlDNn53Mq2Sv7hZAt 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:244748 Archived-At: > Both results in this scenario are wrong, IMO, so I don't see why we'd > prefer one of them. The one with the persistent overlay leaves behind an overlay in the lower window that is not removed by the region highlighting code. So that gets us back another incarnation of the original bug. > I also don't understand how this scenario could > happen in real life, FWIW. Given the plethora of 'set-window-configuration' and 'save-window-excursion' calls in the Emacs code base (some of them with separate position handling instructions), I'm quite confident that it eventually will happen. martin