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#64993: 29.1; scroll-other-window breaks global-hl-line-sticky-flag Date: Tue, 01 Aug 2023 20:20:56 +0300 Message-ID: <83a5va1xxj.fsf@gnu.org> References: <83h6pi21xu.fsf@gnu.org> <83cz061z1d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30627"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64993@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 19:21:15 2023 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 1qQt3a-0007ky-RF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 19:21:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQt3R-0002Xh-9E; Tue, 01 Aug 2023 13:21:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQt3P-0002W5-0l for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 13:21:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQt3O-0003aQ-ON for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQt3O-0004qr-Ba for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 13:21: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: Tue, 01 Aug 2023 17:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64993 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 64993-submit@debbugs.gnu.org id=B64993.169091046018634 (code B ref 64993); Tue, 01 Aug 2023 17:21:02 +0000 Original-Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:21:00 +0000 Original-Received: from localhost ([127.0.0.1]:48273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQt3L-0004qU-SU for submit@debbugs.gnu.org; Tue, 01 Aug 2023 13:21:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQt3K-0004qG-6T for 64993@debbugs.gnu.org; Tue, 01 Aug 2023 13:20:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qQt3E-0003Ef-JO; Tue, 01 Aug 2023 13:20:52 -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=xOtfsAP/amtJlT92BTz9RbDIhd/hEEWEJk80t4SA4hg=; b=rNl66bLm2OlI Fjo/LHo9CQl7/f/hI36vy2q8Epa+GSBUp8VUBYXFY1JvCz+z5rP+c0p37NW4zSprKPpVHVrynLPGJ UVfoCuHD4rLmWLPii0+7TmysOM8XK+sJEEduAs5xS6qquH+CFiZMnBEJZbDSB+e5F4rJhk4Kn0n/U mFfD1vS8M/NZDCWjVohiI8tahLfDX3Hv1W/OSgqykxlU50eCCwD8wx5flVw8dlL4iqR4+pBTU2JuN gskn9PfTgTi4lm0HK1OsCLsm0ZurVacLur5m4RdNxUCtyE/IojtZtid6t1H53KZNa5up91cg0mAIO pmUlmYI7vpVv007r23EARQ==; Original-Received: from [87.69.77.57] (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 1qQt3E-0003PV-0a; Tue, 01 Aug 2023 13:20:52 -0400 In-Reply-To: (message from Spencer Baugh on Tue, 01 Aug 2023 13:13:36 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266464 Archived-At: > From: Spencer Baugh > Cc: 64993@debbugs.gnu.org > Date: Tue, 01 Aug 2023 13:13:36 -0400 > > Eli Zaretskii writes: > > > global-hl-line-sticky-flag non-nil means the > > highlight in non-selected windows is not removed: > > (defun global-hl-line-maybe-unhighlight () > > "Maybe deactivate the Global-Hl-Line overlay on the current line. > > Specifically, when `global-hl-line-sticky-flag' is nil deactivate > > all such overlays in all buffers except the current one." > > > > So "C-x o" leaves the highlighting overlay in the window that was > > selected, and it will remain at the same position until that window > > becomes selected again, because highlighting is moved only in the > > selected window. > > Yes, this is the implementation, and you have explained how it is buggy. You may think it's "buggy", but the doc string describes the "buggy" behavior ("deactivate the overlays in all buffers except the current one only if the flag is nil"). So it's at least documented, and one could argue that this is the intended behavior. > > If you don't like these effects of global-hl-line-sticky-flag, then > > don't use it. It's off by default, presumably due to these effects. > > Things which are off by default can still be buggy. They can, yes.