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: Thu, 6 Oct 2022 09:48:12 +0200 Message-ID: <48874213-cfe4-dc07-fe0a-cb085d6549ef@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> 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="6413"; 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 Thu Oct 06 09:53:32 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 1ogLhE-0001Xe-Dj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 09:53:32 +0200 Original-Received: from localhost ([::1]:59028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogLhD-0004Qr-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 03:53:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogLcs-0002ax-NR for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 03:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59687) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogLcs-0007mW-BV for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 03:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogLcr-0007mA-SI for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 03:49: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: Thu, 06 Oct 2022 07:49: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.166504250729833 (code B ref 58175); Thu, 06 Oct 2022 07:49:01 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 6 Oct 2022 07:48:27 +0000 Original-Received: from localhost ([127.0.0.1]:58762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogLcI-0007l5-VZ for submit@debbugs.gnu.org; Thu, 06 Oct 2022 03:48:27 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:37601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogLcG-0007ks-QR for 58175@debbugs.gnu.org; Thu, 06 Oct 2022 03:48:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665042494; bh=8/uXx/JA5savYjmwQgPAeTPeW0pswPqRayzYGMNYEb4=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=eXrOc12qrJIudZsADcSZMRDvoDS2tLLhB0drNyjOkVS+HHIRthM+fcD9ImqqetKiu MCzinSzPP9+NK4I1fZEmu8eED01OKk2QURz+cNt2FSiC7CB5ytepPNRQOXSFteHvUQ L0UnOMqKdY8fnYwNTgWVFXl4BCplBtBNyFIFjFEQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.112]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VHM-1pHAjk30fa-016xWc; Thu, 06 Oct 2022 09:48:14 +0200 Content-Language: en-US In-Reply-To: <83k05eu11t.fsf@gnu.org> X-Provags-ID: V03:K1:B4vH3MhZv8tARnLBfdG2rcoiCQx7rH0wPhVPlwPcyyLlTLYjxPv +443cbL2M5nn/c11472w16c2K8kBMw6CKEwnQC2TH7s0HbBge8mGby8cvCtTPec6TZTQwbo V8sd6lwEvN8I1yUSK+gGMop9WS53T0f+f6uVip4h6T9WaMwynpqdgYoP6xQZVuOa9T51Jn1 8ViuAAsnP40r0Ny50UNCA== X-UI-Out-Filterresults: notjunk:1;V03:K0:lGDiW08skIQ=:xd3tSfdgW8se58tQ5n25+u qVjLn27y8Fvd2MJp8mv02LJni8PCPvsoYMtCcHeAPYuIGljSE9Z/RK7JqdfYyR65wt9Oe5QL5 maBEWVwoJa93vPm3mx/R36ySjWhFd1T56Avs8/LgLoOpl1nhwrd3A7OD4M81fmk7mavA3pTIN 7O/XJdK41gyecV5t1q+XmZWwSxboMPX5RVNs6+I1ZkoKOtnL4ugsnMFJLwDT9iqgOoIaCtpH9 OqvqkXMtSszTzuTEPrSxuglH2dSvzcmRI3qsPxLP1ECDk0mNitwCtdLmxIr1xEzZQ22+e/Sw+ R2ZSkviSPfzisoXEmEvpOhq70GtA6v+yEWaEhERdXpo3TeR4oovwjvnwQM0Dsm187GdeWsFpq 1hLrb8nrSdS+ibGS7XZPEV55WDwBgyJ+O9w83gbk5JqJEAfjFl1K3f9Jd9IZudyYGrUC5fcS5 s4KTZzKqTcgwyb/xNXrdJGnEghoYx79sBNIz6W7RjbzwSARaCrgLH3kwoaeJRRJdP7ApnSZOY 42siPEFzwMJ9HBsCioIAXRV/7gAXIGJiMhWI0NIGAN7USGVpGv1cd7AEvQ6McwnXAKZDD8pCV iO15Weaxx7qO02TvaCD8p5UWr7qO9kWa41J7oTgBi+ap6RTMAtFYop7qxrYpdqQ10ZQYrPlcD CxYZ54FMK+8R8YW3j/Th/1L5nyHGg4YgUTtipaUrsFDMFcu3V/mX3Sr6lbrSx+wnMh7o6bNyx mJcJLueJR5IouzGpWikjjU59n9aaVo7D4yK0RbnLSX4uhS1oqyrXf8RisIrIHgwTNR8dZI1Z 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:244608 Archived-At: > In the scenario described in this bug report, point is copied to the > new window, so the result is as expected. Deactivating the mark also > does the expected job. So it looks like adding > internal-region-overlay to the persistent window parameters is a good > solution in this case. I suggest that you try that, maybe you will > see some problems that I missed. With emacs -Q put the following text into *scratch* (push '(internal-region-overlay . t) window-persistent-parameters) (defvar foo-conf nil) (defun foo-save () (interactive) (setq foo-conf (current-window-configuration))) (defun foo-restore () (interactive) (set-window-configuration foo-conf)) (split-window) ;; (eval-buffer) evaluate it and do M-x foo-save followed by C-x o. Move point and activate the region. M-x foo-restore now gets me two overlays, one in the upper and one in the lower window. Now try again with 'internal-region-overlay' not made persistent, that is, the first line commented out. The same scenario gets me one (albeit illogical) overlay in the upper window only. martin