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 15:19:05 +0300 Message-ID: <834jzaodza.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1381"; 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 14:20:30 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 1oEVAM-00007M-8Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 14:20:30 +0200 Original-Received: from localhost ([::1]:51544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEVAL-0003HN-4e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 08:20:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEV9u-0003DH-MO for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEV9u-000336-Cm for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEV9u-0000dx-67 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08: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, 21 Jul 2022 12:20: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.16584059632405 (code B ref 56662); Thu, 21 Jul 2022 12:20:02 +0000 Original-Received: (at 56662) by debbugs.gnu.org; 21 Jul 2022 12:19:23 +0000 Original-Received: from localhost ([127.0.0.1]:36827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEV9G-0000cj-N2 for submit@debbugs.gnu.org; Thu, 21 Jul 2022 08:19:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEV9B-0000cP-DC for 56662@debbugs.gnu.org; Thu, 21 Jul 2022 08:19:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEV95-0002sS-PG; Thu, 21 Jul 2022 08:19:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SCTSjAcqrXgAldJs10/6l2z9skLRYyE4j1ZkPxVbdcE=; b=FyCFJ8D/VcXPWWLGyL2j BSIPb8JASbJ13ybVDZUx8UnF342h5cfRhcHw+rUNpNmZZF08NnDsI8Nnh1EQPZFgHyl+VVmyvWofb 6O5e3jZ6CcTzcpTooE/Y9k5n+7xQTKZ6GwtJiYlkZ7ytGSlJVWadpYyjGH3KqoZqGWiP51Mzo8btP q22X4bcF/W7j9gQL78T6adhWjE9qlUfKaSpF7sU2OMJ8GTahfoI/f6knMTLmWnyWIi/7MIFxzoqOo YwD+v7aBE2ACwazH5jDrvvQFwmItfN6Swp8echo9KdiU1felgP8S1NBou2NQQUwgtwBXBU6Wb8Uii MmMw4+3OsNThNg==; Original-Received: from [87.69.77.57] (port=2040 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 1oEV95-0000Dq-8m; Thu, 21 Jul 2022 08:19:11 -0400 In-Reply-To: <87h73a7lsx.fsf@gmail.com> (message from Visuwesh on Thu, 21 Jul 2022 16:52:06 +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:237546 Archived-At: > From: Visuwesh > Cc: Kévin Le Gouguec , > 56662@debbugs.gnu.org > Date: Thu, 21 Jul 2022 16:52:06 +0530 > > [வியாழன் ஜூலை 21, 2022] Eli Zaretskii wrote: > > >> I kind of wish there was a third value for this user option; > >> e.g. (setq highlight-nonselected-windows 'lazy) to signify "keep > >> highlighting as-is when leaving the window, and never update it > >> until the window becomes current again"? 🤷 > > > > How would that work, if you take into consideration that the region is > > between the mark and point? > > I can think of one way this could potentially work is by checking if the > mark was made when window was active so making the mark "window-aware"? > I.e., if two windows A and B show the same buffer and the user typed > C-SPC when in window A, then the region would not show up in window B. > Does this make sense? So what happens if the user then types "C-x o" to switch to B?