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, 29 Sep 2022 22:19:34 +0300 Message-ID: <837d1mf0op.fsf@gnu.org> References: <86sfkaay2d.fsf@miha-pc> <83a66if2r0.fsf@gnu.org> <8735cauh0b.fsf@miha-pc> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14070"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58175@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 29 21:20:44 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 1odz5O-0003Rd-GG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 21:20:42 +0200 Original-Received: from localhost ([::1]:58892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odz5N-0004fC-86 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 15:20:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odz4k-0004TQ-Ff for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 15:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40539) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odz4k-0006rH-7z for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 15:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odz4k-0006Cy-2l for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 15:20: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, 29 Sep 2022 19:20: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.166447919623847 (code B ref 58175); Thu, 29 Sep 2022 19:20:02 +0000 Original-Received: (at 58175) by debbugs.gnu.org; 29 Sep 2022 19:19:56 +0000 Original-Received: from localhost ([127.0.0.1]:39617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odz4d-0006CY-Lc for submit@debbugs.gnu.org; Thu, 29 Sep 2022 15:19:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odz4Z-0006CK-MS for 58175@debbugs.gnu.org; Thu, 29 Sep 2022 15:19:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odz4T-0006px-JX; Thu, 29 Sep 2022 15:19:45 -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=E8luZrCuXgJ1MXyrNMhdOQ5FG3uSydMbW/+v4sCHq/8=; b=p3/pADrtmi9m WHoIfC2yvFcFV0FytG9LcMYFckfM1IdSKSwZUMMjA7B+J1sz8GF9pS1DZw9/2iSeTISnhov0guuJb GWeusifTYdeHZlLM4flzkfsPl/7EROg7/3KlCZz9jxR1APHMvtWUjLM4T1ifi1nDkH7FkjIzH19Tr /T7qDjolFzvfY2l6lfNklUP/3ZevOLYycHmv4MzRPrED5CUeh5NXV5jHojoNynPbJhVDfbmOrcANV nSHoiPLl8j/7rdULP2BTbbQPK6qcUVg/c8JX2tVDfht8innfVQUpHyJawQzSUgbUlc8afLrMM8TPV oh0EwWxQtIiQ73mzbrtynw==; Original-Received: from [87.69.77.57] (port=2532 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 1odz4S-0004eb-5z; Thu, 29 Sep 2022 15:19:45 -0400 In-Reply-To: <8735cauh0b.fsf@miha-pc> 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:243946 Archived-At: > From: > Cc: 58175@debbugs.gnu.org > Date: Thu, 29 Sep 2022 21:17:56 +0200 > > >> 1. 'C-h e' to display *Messages* in a new window > >> 2. 'C-SPC C-n' to mark an active region > >> 3. 'M-x window-swap-states' > >> 4. 'C-g C-n' to deactivate the mark > >> > >> Notice how the region overlay stays there. > > > > "There" where? > > In the *GNU Emacs* buffer, where we have originally marked a region in > step 2. > > > What did you expect to happen in the above scenario, and why? > > I expect the overlay to disappear after deactivating the mark with 'C-g' > in step 4. Ah! Now it's clear what this issue is about. The problem is that deactivate-mark doesn't work in this case, for some reason, and neither is setting mark-active to nil.