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 18:02:32 +0530 Message-ID: <87a6927ijj.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> 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="34894"; 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 14:34: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 1oEVOF-0008rv-1r for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 14:34:51 +0200 Original-Received: from localhost ([::1]:39560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEVOD-0007UZ-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Jul 2022 08:34:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEVNS-0007SI-OK for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEVNS-0005d8-Cw for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEVNS-00013u-8D for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2022 08:34:02 -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 12:34: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.16584067874006 (code B ref 56662); Thu, 21 Jul 2022 12:34:02 +0000 Original-Received: (at 56662) by debbugs.gnu.org; 21 Jul 2022 12:33:07 +0000 Original-Received: from localhost ([127.0.0.1]:36852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEVMZ-00012Y-GY for submit@debbugs.gnu.org; Thu, 21 Jul 2022 08:33:07 -0400 Original-Received: from mail-pf1-f196.google.com ([209.85.210.196]:41665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEVMX-000123-Dr for 56662@debbugs.gnu.org; Thu, 21 Jul 2022 08:33:06 -0400 Original-Received: by mail-pf1-f196.google.com with SMTP id l124so1617965pfl.8 for <56662@debbugs.gnu.org>; Thu, 21 Jul 2022 05:33:05 -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=j8zPqmDzCPYHmtsxjblyvo5Tc8KuOBJspz6aDU/R5oE=; b=JOHHswius258dg8PSygIYQqm8pWJZVEQlOW27wU7UFU1CA/W3NJLH1mzU8FIT+hDHK Rye2j/l95AFHvu7F3F+06D23cSoOHJV4ZXVgWMzxObPKD5/+j3+EgQBECRlEdD+JqSuy 5bzM5Gink9iXOG+D5wM+AC/kjp2dYhuBgeC/28uExOHFm/nlm6uQOzeoCT0DWqjZi5IZ 3fWnuZrY2uZwEs9OUVRIhypn7MvNP4Gt44W1txojbi922hFpTdFwyuuItEtf7JCE/0GT lD6r9OTWZ28SC77v5L3yH56yvjCUbmGx0l9BBZ06aHPj4n6E7usp8e6fMe3S+HajQy8T +Qsg== 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=j8zPqmDzCPYHmtsxjblyvo5Tc8KuOBJspz6aDU/R5oE=; b=hr68jMO5/AKOQv9sl0TKpl+fNP/8WL5B/7r0fMwKPWfZHWHz9EOj0BQImckz3Ddp/D f/uKjLUuvwIFTyiW0Yz8hU9UNh8+F8kobenWz3n/z8ytlKusYxvmfso+KeWUcn5Bgx7E 0AmYnSQf4QBKFA42Xc/m1esB4JMKEZPt5Z98Fj01WnpKulbJ0d3TvbDpYime+bIrTIlD SXhWEKpdgXd6IyxNigp3dtn1zSr+UmmDlHhJLhXXeep41lJh+qgEInE0fdiatzmZ5t8M 3QroZx75bWtwkJzQ6fxMmXtOqLfPbEgq2w4LvwYba0ilPcwsO+GifD4SKEZeVuAlb58M hz7Q== X-Gm-Message-State: AJIora/kNzYywyPO58motXuHheQYWQDumAuBH775l1htNtMH34ryJfSX 7RrC/R9J5EpjJkdAxlrJK7Q= X-Google-Smtp-Source: AGRyM1tKskjgMUOdifKNgzRNRhpBEDQXuquS3lw53THVrBzIP7orakCRfCC/zV+7GTghQ0iBv/rfAg== X-Received: by 2002:a65:6e96:0:b0:415:5973:b4f4 with SMTP id bm22-20020a656e96000000b004155973b4f4mr37119507pgb.568.1658406779240; Thu, 21 Jul 2022 05:32:59 -0700 (PDT) Original-Received: from localhost ([49.204.128.241]) by smtp.gmail.com with ESMTPSA id g3-20020a1709026b4300b0016c6e360ff6sm1524070plt.303.2022.07.21.05.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 05:32:58 -0700 (PDT) In-Reply-To: <834jzaodza.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Jul 2022 15:19:05 +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:237549 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: >> From: Visuwesh >> Cc: K=C3=A9vin Le Gouguec , >> 56662@debbugs.gnu.org >> Date: Thu, 21 Jul 2022 16:52:06 +0530 >>=20 >> [=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: >>=20 >> >> 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"? =F0=9F=A4=B7 >> > >> > How would that work, if you take into consideration that the region is >> > between the mark and point? >>=20 >> 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? Ideally, nothing. Only the active window changes but the region highlighting before and after should be the same. Here's another question: what about delete-selection-mode when the active window is B? I think there is no satisfactory answer in this area and this bug should be simply closed (but I'm interested to see an answer though).