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: Wed, 20 Jul 2022 15:48:13 +0300 Message-ID: <83sfmwkl0y.fsf@gnu.org> References: <87bktk585s.fsf@gmail.com> <83wnc8klhw.fsf@gnu.org> <877d48550b.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="14281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56662@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 20 14:49:21 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 1oE98i-0003XK-Nn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 14:49:20 +0200 Original-Received: from localhost ([::1]:52756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE98h-0005B8-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 08:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE98R-00059c-Sv for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:49:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE98Q-0001nR-Dr for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE98Q-0008NS-A2 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 08:49: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: Wed, 20 Jul 2022 12:49: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.165832131732161 (code B ref 56662); Wed, 20 Jul 2022 12:49:02 +0000 Original-Received: (at 56662) by debbugs.gnu.org; 20 Jul 2022 12:48:37 +0000 Original-Received: from localhost ([127.0.0.1]:56305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE981-0008Mf-2K for submit@debbugs.gnu.org; Wed, 20 Jul 2022 08:48:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE97z-0008MP-A4 for 56662@debbugs.gnu.org; Wed, 20 Jul 2022 08:48:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE97n-0001f3-UG; Wed, 20 Jul 2022 08:48:28 -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=ezODT+ajcDgn3AdlMqvWevprYYGoAFPsHi8j9prCK6w=; b=HkqyZMAwr7zegkF0HSsK EzZY1PmCQXdQNvoSLIJsSZU3h7uLLTX6/HZdkhQTcpA6Ke5GJcM9xbD0F9x6syCtH8mREBpxTdvsC 9bmrSuQ7BNqubLPNkJX0O5PEFFWiRw+7dHjlEYAxI9x8KpMQHR8ghAFSNUSQK23nxhck0/+3vPfuj 4n/2JgXKqbrFYEoSb3CJpG71dbZ8IjLYvB7/ouSrFkgDvfupV6MJcKC1l+GDcqq8wGgGBFwyRKHDe 0C4dCy+63TLudZoR2Mqop1FcmEJKrs9/Ch6T2Rl0PWhfoqu+83EEsu83IM5YEhh1uf5sMReOYGLRs 0rAU8WhGcvlInA==; Original-Received: from [87.69.77.57] (port=1466 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 1oE97n-0003Oj-E5; Wed, 20 Jul 2022 08:48:23 -0400 In-Reply-To: <877d48550b.fsf@gmail.com> (message from Visuwesh on Wed, 20 Jul 2022 18:13:16 +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:237503 Archived-At: > From: Visuwesh > Cc: 56662@debbugs.gnu.org > Date: Wed, 20 Jul 2022 18:13:16 +0530 > > [புதன் ஜூலை 20, 2022] Eli Zaretskii wrote: > > >> From: Visuwesh > >> Date: Wed, 20 Jul 2022 17:05:11 +0530 > >> > >> 1. emacs -Q > >> 2. Visit a longish file. > >> 3. C-x 3 and scroll up in any of the window. > >> 4. M-: (setq highlight-nonselected-windows t) RET. > >> 5. Create an active region and compare the highlighting. > > > > What is wrong with this behavior? In each window the region between > > the mark and point is highlighted, as you requested by turning on that > > option. > > > > What am I missing? > > Since the point is local to the window, it felt natural that the region > would be too. And it is. But the mark originally is the same. If you switch to the other window and set its mark in a different place, you will have completely separate and independent highlighting. > But since the region simply highlights the text between the point > and the mark, the current behaviour is not strange indeed. I guess > there's nothing to do here and this bug can be closed? Yes, I think this is the intended behavior.