From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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, 04 Oct 2022 19:54:32 +0300 Message-ID: <83bkqrv8af.fsf@gnu.org> References: <86sfkaay2d.fsf@miha-pc> <83a66if2r0.fsf@gnu.org> <8735cauh0b.fsf@miha-pc> <837d1mf0op.fsf@gnu.org> <83fsg6186y.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58175@debbugs.gnu.org, monnier@iro.umontreal.ca, miha@kamnitnik.top To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 19:17:36 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 1oflY0-0004kK-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 19:17:36 +0200 Original-Received: from localhost ([::1]:47992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oflXz-0003tN-0n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 13:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oflCA-0001pW-Cf for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:55:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oflCA-0000US-3k for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oflC9-0003nt-Nf for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 12:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 16:55: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.166490248814597 (code B ref 58175); Tue, 04 Oct 2022 16:55:01 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 4 Oct 2022 16:54:48 +0000 Original-Received: from localhost ([127.0.0.1]:55065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oflBv-0003nN-Vh for submit@debbugs.gnu.org; Tue, 04 Oct 2022 12:54:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oflBs-0003n8-Vi for 58175@debbugs.gnu.org; Tue, 04 Oct 2022 12:54:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oflBl-0008MU-Ti; Tue, 04 Oct 2022 12:54:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+pltLGCRCI6uUG+ijL6xlrctWtzDWwh7RLdzYwwW6wU=; b=sCLaoK4rEQU3 W1FL5BUwK6E2YDag3qyOObnujjqhJZlG7ozlMsMgSMDy8+gv7FKOzqY9dPaP4eMHhrw3vUl/f5uqQ Tc/3BQN1HiujbowhkJdvxlrgnfaNsd1nXb5Kyd+9u9fx7+PfJPmUABIsKNSWLTPU7rRp6SRva0db4 llEYBmEnnaHTSmLTP4EB0epF4Fo7lY0o3A0H7z6jckJt6UbH9qe4Jwd+eM21q8C7E5JeTxVw+5eJ/ KBKEyAWme19GO30DJ9OaG/hN+Ai/khmc3E/n+tG7zONwuaVj5I1TggCOklmc3FFSSQJ++O02sHiDF kqw12cMv/G+18fWuz6+ohQ==; Original-Received: from [87.69.77.57] (port=1449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oflBk-000085-SX; Tue, 04 Oct 2022 12:54:37 -0400 In-Reply-To: (message from martin rudalics on Tue, 4 Oct 2022 10:23:49 +0200) 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:244454 Archived-At: > Date: Tue, 4 Oct 2022 10:23:49 +0200 > Cc: 58175@debbugs.gnu.org, Stefan Monnier > From: martin rudalics > > > 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) Thanks. Does this affect only window-swap-states, or does this affect anything else? If the former, I guess the above should be done globally when Emacs is dumped?