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#56662: 29.0.50; Funny region highlights when highlight-nonselected-windows is t Date: Thu, 21 Jul 2022 18:54:35 +0300 Message-ID: <83lesmmpfo.fsf@gnu.org> References: <87bktk585s.fsf@gmail.com> <83wnc8klhw.fsf@gnu.org> <877d48550b.fsf@gmail.com> <83sfmwkl0y.fsf@gnu.org> <871qufpmjp.fsf@gmail.com> <83lesnnfxy.fsf@gnu.org> <87h73a7lsx.fsf@gmail.com> <834jzaodza.fsf@gnu.org> <87a6927ijj.fsf@gmail.com> <83wnc6mygg.fsf@gnu.org> <875yjqr0s1.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56662@debbugs.gnu.org, kevin.legouguec@gmail.com To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 17:56:51 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 1oEYXj-0009x8-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 17:56:51 +0200 Original-Received: from localhost ([::1]:58406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEYXi-0001F2-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 11:56:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEYVz-0007vm-5z for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEYVy-0006M9-H9 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEYVy-0000lT-D7 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 11:55: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, 21 Jul 2022 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56662 X-GNU-PR-Package: emacs Original-Received: via spool by 56662-submit@debbugs.gnu.org id=B56662.16584188922916 (code B ref 56662); Thu, 21 Jul 2022 15:55:02 +0000 Original-Received: (at 56662) by debbugs.gnu.org; 21 Jul 2022 15:54:52 +0000 Original-Received: from localhost ([127.0.0.1]:38727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEYVn-0000ky-OS for submit@debbugs.gnu.org; Thu, 21 Jul 2022 11:54:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEYVi-0000kh-L1 for 56662@debbugs.gnu.org; Thu, 21 Jul 2022 11:54:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEYVd-0006KE-90; Thu, 21 Jul 2022 11:54:41 -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=AK76x7sPSUhd//4oy4LajL59L38PILB8zK37BKCFueQ=; b=BkqnOI8FbKay lYEyEGY83wK2me1ED+bn1UHvcaAcUh81XvgKC+8e+YblQ6DklapEJIPDHVAmYVFy6/D9FVeJC7DGg HkkB0wDnZs9zXVRtMJT+FBiC7TAG6wgiVmyjndT2ezm+077B8D+lXhDvVg5akPvnqjtkclJzBNM2c 11xvEzkPR6rDKaAF0K2GFUPAF3gd5eLkvSpPx+dOaAjdfsyFNrmSQ9ZHSeXko58H7d34Zt6phakDA fQZ/9iCz2mDhEkLZ9Fx2z7Eqa98Zx4DmaSGTHvxtc3187U6klQrHE5VbRyLv4OA6mT6CmLCL90O9f +eqQXngU2xiUqs2ir+ekeQ==; Original-Received: from [87.69.77.57] (port=3440 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 1oEYVc-00057A-NI; Thu, 21 Jul 2022 11:54:41 -0400 In-Reply-To: <875yjqr0s1.fsf@gmail.com> (message from Visuwesh on Thu, 21 Jul 2022 20:05:58 +0530) 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:237559 Archived-At: > From: Visuwesh > Cc: 56662@debbugs.gnu.org, kevin.legouguec@gmail.com > Date: Thu, 21 Jul 2022 20:05:58 +0530 > > >> > So what happens if the user then types "C-x o" to switch to B? > >> > >> Ideally, nothing. Only the active window changes but the region > >> highlighting before and after should be the same. > > > > But that's a bug: region highlighting should definitely work in a > > selected window. > > > > It won't be a bug if the region is considered window-local. That's what the default already does, doesn't it? > "Window-local" because the region was made when in window A and so its > "active"-ness is confined to window A. > > >> Here's another question: what about delete-selection-mode when the > >> active window is B? > > > > What about it? > > If we were to make the region window-local, then should > delete-selection-mode delete the region when in window B? If it's highlighted, yes.