From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56662: 29.0.50; Funny region highlights when highlight-nonselected-windows is t Date: Thu, 21 Jul 2022 20:05:58 +0530 Message-ID: <875yjqr0s1.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16885"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 56662@debbugs.gnu.org, kevin.legouguec@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 21 16:38:18 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 1oEXJh-0004J9-Un for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 16:38:17 +0200 Original-Received: from localhost ([::1]:33088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEXJg-0007cB-UB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 10:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEXIU-0005PL-8K for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 10:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEXIT-0002Cl-VQ for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 10:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEXIT-0004nC-O9 for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 10:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2022 14:37:01 +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.165841418018370 (code B ref 56662); Thu, 21 Jul 2022 14:37:01 +0000 Original-Received: (at 56662) by debbugs.gnu.org; 21 Jul 2022 14:36:20 +0000 Original-Received: from localhost ([127.0.0.1]:38571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEXHo-0004mE-8p for submit@debbugs.gnu.org; Thu, 21 Jul 2022 10:36:20 -0400 Original-Received: from mail-pj1-f66.google.com ([209.85.216.66]:55122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEXHj-0004lv-BI for 56662@debbugs.gnu.org; Thu, 21 Jul 2022 10:36:18 -0400 Original-Received: by mail-pj1-f66.google.com with SMTP id pc13so1789721pjb.4 for <56662@debbugs.gnu.org>; Thu, 21 Jul 2022 07:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=MwKINqePm6/y216eVZmXYEr9yD2fm7VJv+Xr+i9/cEE=; b=OkTPjZbyIVfY/e6QCsCH1vmqBVcB2KZvMcKCtXaQq6tbnaCJ9X6Ey3Im3HmxRUx6Az edWUJs2C07JW/61WsYhwE0n8scvw5eYn5hUCdf6/RkQVy/wRtssCl2h6SmaU4fBNQDYm xSQFduOm5O8ht+6MbkrnSdLHfsWXNAZXObdpR0cPs2Hk/H9+CO5mjrhiq4yXVHIRjxf/ 50Hq6rxP7S5zI1qh3FalGYGeu7/d9taaOY1OhkviSVGNdinIj0BfH6Gw3C+x69hOfcLD rz8tzoWWuhk78qb6zCeBb4WjSFxER0dRs1UxLEkreR7nGQ9Z+Wy4ASHd6tlhRhLUJVQR IfKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version:content-transfer-encoding; bh=MwKINqePm6/y216eVZmXYEr9yD2fm7VJv+Xr+i9/cEE=; b=bIgRpbHoYDMD3nK/V85IUP99VZq3KgNPFaggz3LRjIwZmj3CMWWx0qBWyTFJ6CZzTL bRm8Li9wV/AEG9Lv89g+qjIQWT+rWD56EEhhz2AAcRO1uuigqSUD6FaWFsosl6/TeD7R xrYWhoebanBQIgkEBj7owPomFHaSXK+zaKUsWc2LO28iQVKJw7HG+HCr/unY+uramBAl oPXKfrYf5fUhtFHkJgPzgaMUqF6xylK6y2ZoCGfw6BX/UlXnsmrcl0Nlrvt56VJV36qR XaTHkVQKqZpOc0CI+MoK0FqAskTjypFxrXSpkTqvmlqmHf1YcJpPWA0BoM6wDDtTrHOV igGA== X-Gm-Message-State: AJIora95CiSFTaSEYwaXoLgRL5oa5hZJU5qPFI6P5oTJGaq1pErSwbpe pxMfqm4Tm1JxIXW/1XmdkQk= X-Google-Smtp-Source: AGRyM1tjy8IpzenwyuIjZvWfN3F4qdQ9RbCD6b1rNBerWeejqwZIjUm+flPKOSczTeOlfiXmWosv6Q== X-Received: by 2002:a17:902:cf0e:b0:16d:2517:845 with SMTP id i14-20020a170902cf0e00b0016d25170845mr7421639plg.62.1658414169355; Thu, 21 Jul 2022 07:36:09 -0700 (PDT) Original-Received: from localhost ([49.204.128.241]) by smtp.gmail.com with ESMTPSA id p64-20020a625b43000000b00528c4c735besm1869276pfb.39.2022.07.21.07.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 07:36:08 -0700 (PDT) In-Reply-To: <83wnc6mygg.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Jul 2022 15:39:43 +0300") 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:237555 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=9C= =E0=AF=82=E0=AE=B2=E0=AF=88 21, 2022] Eli Zaretskii wrote: >> >> 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? >>=20 >> 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. "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?