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: Thu, 06 Oct 2022 11:13:03 +0300 Message-ID: <83a669qsj4.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5761"; 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 Thu Oct 06 10:25: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 1ogMCB-0001J6-ND for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 10:25:31 +0200 Original-Received: from localhost ([::1]:44784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogMC8-0007wx-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 04:25:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogM15-0007sk-3b for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 04:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogM14-0002vh-Rz for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 04:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogM14-0008QL-HA for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 04:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2022 08:14:02 +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.166504399732317 (code B ref 58175); Thu, 06 Oct 2022 08:14:02 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 6 Oct 2022 08:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:58825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogM0L-0008PB-5x for submit@debbugs.gnu.org; Thu, 06 Oct 2022 04:13:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogM0J-0008Oy-DS for 58175@debbugs.gnu.org; Thu, 06 Oct 2022 04:13:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogM0D-0002rK-6k; Thu, 06 Oct 2022 04:13:09 -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=M2tmkfBJfjkq9B3PTrqvkFDRjMievzgq79vJGBZS5XM=; b=rQ4KMgQ3suF+ gCjN9kDHV3AQw3sE+XvoxLqUs5k9ZeAbQKF2XXZjFwbXlDER60q7lvkP1DP+mMp9b4d3lzwGfd19X qCjZiHDAxWbJ0K7vMNcBD7KdH1flHvy6cDA9vOFiaUbzqhajj+qse5+hxXvLp9BB6i0p98v4y2fSl kAXivEgrh68GpRG009QY+vrg+YX5KdQQqUSN1q33eP78blRN3ULSsPUgvLunUhbID1ZCwYyN+y/Vp YNkq9xHO1HhK8rdcaAUsuGFMCPqwN8M/cPdobP1KjN0z/gLGwK9DMNgxpBNFxWmMp6Fz24VGufu7U jmd/oC0eTJqSoNGV3Z03+Q==; Original-Received: from [87.69.77.57] (port=4646 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 1ogM06-00017C-Vm; Thu, 06 Oct 2022 04:13:08 -0400 In-Reply-To: <48874213-cfe4-dc07-fe0a-cb085d6549ef@gmx.at> (message from martin rudalics on Thu, 6 Oct 2022 09:48:12 +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:244611 Archived-At: > Date: Thu, 6 Oct 2022 09:48:12 +0200 > Cc: miha@kamnitnik.top, 58175@debbugs.gnu.org, monnier@iro.umontreal.ca > From: martin rudalics > > 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. Both results in this scenario are wrong, IMO, so I don't see why we'd prefer one of them. I also don't understand how this scenario could happen in real life, FWIW.