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: Tue, 4 Oct 2022 10:23:49 +0200 Message-ID: References: <86sfkaay2d.fsf@miha-pc> <83a66if2r0.fsf@gnu.org> <8735cauh0b.fsf@miha-pc> <837d1mf0op.fsf@gnu.org> <83fsg6186y.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="27204"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58175@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii , miha@kamnitnik.top Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 10:36:21 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 1ofdPY-0006uu-Th for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 10:36:20 +0200 Original-Received: from localhost ([::1]:33552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofdPX-0002YZ-Mw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 04:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofdEc-0003cs-6F for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 04:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofdEb-0001SX-QH for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 04:25:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofdEb-0006FL-KV for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 04:25: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: Tue, 04 Oct 2022 08:25: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.166487184323939 (code B ref 58175); Tue, 04 Oct 2022 08:25:01 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 4 Oct 2022 08:24:03 +0000 Original-Received: from localhost ([127.0.0.1]:52399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofdDe-0006E3-Vo for submit@debbugs.gnu.org; Tue, 04 Oct 2022 04:24:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:45887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofdDd-0006DX-A3 for 58175@debbugs.gnu.org; Tue, 04 Oct 2022 04:24:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664871831; bh=2UW/nfYggz4zdTiO49c7HicdCpZfG+Xcc7A64mi34S8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=AH8Cc6nZWYmK1VAskgbAz+BXDTm7E8GzbIMmrpBrlwbuSOFqBXk0Alyyo7wGf+O5D UKCH7DIp6MwvbLqpu2FhJY/dL5Nsa3QO7c2VgJSDovlBqtnJfjKPM8IBoyURneMK2W NTQi1TikH4P6SJMAE0zxdcS3R2fuWG386mUDm0MM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([46.125.249.89]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MA7KU-1oU2dp2x5O-00BZrg; Tue, 04 Oct 2022 10:23:51 +0200 Content-Language: en-US In-Reply-To: <83fsg6186y.fsf@gnu.org> X-Provags-ID: V03:K1:26cSwD5cZmHbLit+pcm9l/6SV8iAxCLJLZKKyLQh0lkqfJPPdzU dY7hKEkbjRRZSzEoRSu/WRFROZY8g7rqFQac5GXF4G7vyNMJEU2THrL9z7jmw2KVSasC8y4 /xInLs8MMXmAOgu38AL0ZSeJP6+/FDtRSStFUjyt+tSjO8nVMvWwxDq0I8tgxJX6rpsJJ0+ GqgO+Sxvk34Cg8NHJBB3g== X-UI-Out-Filterresults: notjunk:1;V03:K0:qrykIaHQANY=:YPEX4QzmJ035o7DjYsMfxk /hRB0Al0eNMI/xDYajxsQTV7RRrOh/LQiR4Ql7AWKt/LwmxJOUhonsI5DBRo1ZHFW1oLWjvq2 v47tb29AJ1tmHp8TFOAMFHBvzHxwugbcRjz0UZEOEWQB0Wpv7VfnG+GJywjblBwx5iGrVlTDk ooxbp2iVbRSabwwF0Y1zB0ItKuTJ8x0NRbjAZez/9/EY0Q3xXapBV9keEURaSmfyzgUd2H30r 5xKWbS7GQrycQEizS/Yh5HNHAL5pq6ZujV1f/gA6p8aBu4XcUxvmEuuES04XfWpNEL4NYdaX1 jfqvsQB/MynkL726H3/Jimf/C7LiGCK8HjurAVsuHltYSYNk/ntM+8g3Rzz6bL1vOBuZ9R/Ae sBGUKJqoeED1JsAKoGolOeiC32vHNXYnT14pP/UvaXHMPKT9fQ3tJLQ4/5Nru7qD4hxaqx4SK HI46WmJt9SWUEReA+E61bKWdQ13kqtycGEj59wFpSSSBwy9nQjGHUFWakGuMdhcMe3FwYVJwh l3+xNAAYTiHV8cj+Pb/U83ulqNZIJ3xY8Fpe3iYN544VJgo/04TIuyZC1vaAltLwG6mUxU2Sr flEvrdQVHcmVfN4JIdh7LwMOOWNUpDgZeo+CdWMuK999t81HDPBcqcSfRPgoDRGfFY9xSsWhr p1KUsl34Wga4zFgjnECx6u6PSZOLxfzFQN4V8+VX1k45cQ46xk4y7E3t5gqt3/sCo18WvOBbj ovs+QMZ9NURWqY5Pr3ekEKYqmkgrIBe06z69O6VTmj3H2UaQy4GijXl/B1ItKT24kG8Yn9aK 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:244374 Archived-At: > Looks like the internal-region-overlay window parameter, which is > important for correct workings of region-highlight, isn't copied > correctly to the other window as part of swapping state, because its > value ends up as "overlay N in no buffer", i.e. the overlay's buffer > is lost in transition. If you want a window parameter to get copied when swapping window states, you have to explicitly mark it as "persistent". For example with: (push '(internal-region-overlay . t) window-persistent-parameters) martin