GNU bug report logs - #64993
29.1; scroll-other-window breaks global-hl-line-sticky-flag

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Spencer Baugh <sbaugh@HIDDEN>; dated Tue, 1 Aug 2023 15:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) notabug. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 18:04:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 14:04:55 2023
Received: from localhost ([127.0.0.1]:48306 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQtjr-00060P-In
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 14:04:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qQtjp-000609-1z
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 14:04:53 -0400
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 <eliz@HIDDEN>)
 id 1qQtjh-0006KG-QE; Tue, 01 Aug 2023 14:04:46 -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=90jZ4VaoVWO9ZR3FiySQ8rfB1JIZa4ezh+nnjkCHOEw=; b=bFvigJVFT8nR
 jk1eaCb5jR/fE10FwELa9xnTo0zV2wXFRpTTe7H/5N59hQ24aqkOmtD0eW+Rqybo8DxbFpBFmo/f8
 abnb7vI79gVcIF14eABY+MYJDZa5N8mKymvsi6Gy4Ksrx56nKKVWZuHK2wseNz90ajZH6Rz5BRkn0
 lI4Jmhfp2ZE6vEyUNzYDzPWgMdWOk/ijQ/KFfEY8JuuNy8gI3o6IcGqHnvJNdwlDF5Fq0uWSG2n5D
 zRkRjpv/dycLP3oiEEn9BWU37l3m61kBejoN47CuE74JZ/gfpIR5y88xiup8ZUya9i1HUo3r1wUt4
 WbfYpIZ5/8c1skR6xgdiBQ==;
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 <eliz@HIDDEN>)
 id 1qQtjf-0007oD-Dy; Tue, 01 Aug 2023 14:04:45 -0400
Date: Tue, 01 Aug 2023 21:04:49 +0300
Message-Id: <837cqe1vwe.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <ierh6piac5p.fsf@HIDDEN> (message from Spencer Baugh on
 Tue, 01 Aug 2023 13:46:26 -0400)
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN> <iermszaadof.fsf@HIDDEN>
 <83a5va1xxj.fsf@HIDDEN> <ierjzueacs8.fsf@HIDDEN>
 <838rau1x37.fsf@HIDDEN> <ierh6piac5p.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 64993 <at> debbugs.gnu.org
> Date: Tue, 01 Aug 2023 13:46:26 -0400
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Spencer Baugh <sbaugh@HIDDEN>
> >> Cc: 64993 <at> debbugs.gnu.org
> >> Date: Tue, 01 Aug 2023 13:32:55 -0400
> >> 
> >> Arguing about this is rather pointless since I assume you would accept a
> >> patch which fixes the behavior to work even if point moves in a
> >> non-current buffer.
> >
> > I'm not sure I will, because I'm not sure I agree that the current
> > behavior is incorrect.  I understand that you don't like it, but
> > that's all.
> 
> Fine, can we ask an actual user of this feature whether they think this
> is a bug or not?  Would that convince you that there's a bug here?  Or
> what else would convince you?

I don't need to be convinced.  You want a new behavior, so please
implement it as new behavior, not a change in the old one.  For
example, a new, non-nil and non-t value of the sticky flag, which will
cause the mode to behave however you like it to behave.  Then all this
argument is completely unnecessary (as it was from the get-go).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:46:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 13:46:35 2023
Received: from localhost ([127.0.0.1]:48292 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQtS7-0005TX-8y
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:46:35 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:37633)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1qQtS4-0005TF-Q5
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:46:33 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
In-Reply-To: <838rau1x37.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 01 Aug
 2023 20:39:08 +0300")
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN> <iermszaadof.fsf@HIDDEN>
 <83a5va1xxj.fsf@HIDDEN> <ierjzueacs8.fsf@HIDDEN>
 <838rau1x37.fsf@HIDDEN>
Date: Tue, 01 Aug 2023 13:46:26 -0400
Message-ID: <ierh6piac5p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 64993 <at> debbugs.gnu.org
>> Date: Tue, 01 Aug 2023 13:32:55 -0400
>> 
>> Arguing about this is rather pointless since I assume you would accept a
>> patch which fixes the behavior to work even if point moves in a
>> non-current buffer.
>
> I'm not sure I will, because I'm not sure I agree that the current
> behavior is incorrect.  I understand that you don't like it, but
> that's all.

Fine, can we ask an actual user of this feature whether they think this
is a bug or not?  Would that convince you that there's a bug here?  Or
what else would convince you?

Again, this behavior directly contradicts the docstring, and only
vaguely is allowed by the docstring of a random internal function that
you presumably had to read the source to find.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:39:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 13:39:10 2023
Received: from localhost ([127.0.0.1]:48288 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQtKw-0005IL-Bd
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:39:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35336)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qQtKu-0005I9-TA
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:39:09 -0400
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 <eliz@HIDDEN>)
 id 1qQtKp-0002Ra-Bx; Tue, 01 Aug 2023 13:39:03 -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=OMnAvucniJMnF3eh9lG2gd0cvjQYgRfiQ09PNE1dHew=; b=RG/T/92r32F3
 YHjFDykWwuCcB5mb5Py5rMGOA1ZI3NV5AFXNdi2+KFunW5jSyRlsDVawuqwCgw1Wf/DAmp+C3zpUU
 QS7Nfrt2tMsI9FqueLxpSXctNAQPKIxTNhCwklaBAO+NmMzQsEZlW7ZStBYjjWejdjg6eWdbxYYhu
 1wp9GwzPTadIXbDDZiBQEGHe0xby7rcCK9YMC6V8BeOuj0eNG0fwAnMVzOajgNRWaERMI59iKvzbY
 mYQEu20OqGDDflVHEcs4+BWE5GGodnvmLJQkcabjDrbthTJCuhHbuOBpaKd10WMIWiYDocrHmPgx7
 lL/NUBM1+BRU1v7Fh4E3uw==;
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 <eliz@HIDDEN>)
 id 1qQtKo-00014A-Rf; Tue, 01 Aug 2023 13:39:03 -0400
Date: Tue, 01 Aug 2023 20:39:08 +0300
Message-Id: <838rau1x37.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <ierjzueacs8.fsf@HIDDEN> (message from Spencer Baugh on
 Tue, 01 Aug 2023 13:32:55 -0400)
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN> <iermszaadof.fsf@HIDDEN>
 <83a5va1xxj.fsf@HIDDEN> <ierjzueacs8.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 64993 <at> debbugs.gnu.org
> Date: Tue, 01 Aug 2023 13:32:55 -0400
> 
> Arguing about this is rather pointless since I assume you would accept a
> patch which fixes the behavior to work even if point moves in a
> non-current buffer.

I'm not sure I will, because I'm not sure I agree that the current
behavior is incorrect.  I understand that you don't like it, but
that's all.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:33:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 13:33:03 2023
Received: from localhost ([127.0.0.1]:48283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQtF1-00059t-Gz
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:33:03 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:38857)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1qQtEy-00059L-Fm
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:33:01 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
In-Reply-To: <83a5va1xxj.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 01 Aug
 2023 20:20:56 +0300")
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN> <iermszaadof.fsf@HIDDEN>
 <83a5va1xxj.fsf@HIDDEN>
Date: Tue, 01 Aug 2023 13:32:55 -0400
Message-ID: <ierjzueacs8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 64993 <at> debbugs.gnu.org
>> Date: Tue, 01 Aug 2023 13:13:36 -0400
>>=20
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>=20
>> > 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.
>>=20
>> 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.

global-hl-line-maybe-unhighlight is an internal function of
global-hl-line-mode anyway, why and how would a user ever look at its
docstring?

They'd be more likely to look at global-hl-line-mode's docstring, which
explicitly says:

  If =E2=80=98global-hl-line-sticky-flag=E2=80=99 is non-nil, Global Hl-Lin=
e mode
  highlights the line about the current buffer=E2=80=99s point in all live
  windows.

It says nothing about "but if point moves in a non-current buffer, the
highlighting stops working".

Arguing about this is rather pointless since I assume you would accept a
patch which fixes the behavior to work even if point moves in a
non-current buffer.  I just want to remove the notabug marker on this
bug, and I'll get to it eventually, maybe.

>
>> > 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.
>>=20
>> Things which are off by default can still be buggy.
>
> They can, yes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:21:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 13:21:00 2023
Received: from localhost ([127.0.0.1]:48273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQt3L-0004qU-SU
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:21:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52842)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qQt3K-0004qG-6T
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:20:58 -0400
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 <eliz@HIDDEN>)
 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==;
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 <eliz@HIDDEN>)
 id 1qQt3E-0003PV-0a; Tue, 01 Aug 2023 13:20:52 -0400
Date: Tue, 01 Aug 2023 20:20:56 +0300
Message-Id: <83a5va1xxj.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <iermszaadof.fsf@HIDDEN> (message from Spencer Baugh on
 Tue, 01 Aug 2023 13:13:36 -0400)
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN> <iermszaadof.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 64993 <at> debbugs.gnu.org
> Date: Tue, 01 Aug 2023 13:13:36 -0400
> 
> Eli Zaretskii <eliz@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 17:13:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 13:13:43 2023
Received: from localhost ([127.0.0.1]:48268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQswI-0004fH-UI
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:13:43 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:46833)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1qQswH-0004f2-C9
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 13:13:41 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
In-Reply-To: <83cz061z1d.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 01 Aug
 2023 19:57:02 +0300")
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
 <83cz061z1d.fsf@HIDDEN>
Date: Tue, 01 Aug 2023 13:13:36 -0400
Message-ID: <iermszaadof.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Cc: 64993 <at> debbugs.gnu.org
>> Date: Tue, 01 Aug 2023 12:28:14 -0400
>> 
>> 1. emacs -Q
>> 2. Eval
>> (setq global-hl-line-sticky-flag t)
>> (global-hl-line-mode)
>> 3. C-x 3  (make two windows)
>> 4. C-h n  (make one window contain NEWS)
>> 5. C-x o  (switch to the other window)
>> 6. Note the line with point is highlighted in both windows
>> 6. scroll-other-window
>> 7. Note the line with point is no longer highlighted in the NEWS window
>
> And why is this a bug?

Because it contradicts the docstring and the intent of the flag, which
is to have a highlight for point in all windows.

> 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.

> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 16:57:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 12:57:07 2023
Received: from localhost ([127.0.0.1]:48257 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQsgE-0004Eq-Kq
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 12:57:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48986)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qQsgB-0004EM-Pd
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 12:57:05 -0400
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 <eliz@HIDDEN>)
 id 1qQsg6-000778-8C; Tue, 01 Aug 2023 12:56:58 -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=IO5/bw/fDgCU6ZDrwhXnDXkhDEj7PPiQvOR4Z2ABOXs=; b=ga/ajOFFaZ80
 MGe9OIp0Q9zqG71ZEOMYPg90P6vqr9ZIK8JL0kxyYOw/QXzELFUKC1egRq0yiWB8QX8xOVmDzaxHZ
 NlK9WxNVRJ0Ag+uPZk+EsBeGHu4SWhnDBijDRVggyJkv8euYSmNSAGz/n0zflOa7qwRav5SNfUgcx
 HfmW1KIplqRokp6pBUHP9+8d3u2GUEiLoCSWaed7TXeJbF0yvO93RsTLWdrt5ER70OVSVCe8ylWuj
 FRoWXbsb42TBKoao83Uhq3mwVtmqKtDiIuImuOXS+VxvXeFn+ugmU+r+wgfZiuiDe5N84MjQFVrFe
 CppJCmlDCwKHRk81xFJD2Q==;
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 <eliz@HIDDEN>)
 id 1qQsg5-0005IE-Ic; Tue, 01 Aug 2023 12:56:57 -0400
Date: Tue, 01 Aug 2023 19:57:02 +0300
Message-Id: <83cz061z1d.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <ierpm46afs1.fsf@HIDDEN> (message from Spencer Baugh on
 Tue, 01 Aug 2023 12:28:14 -0400)
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN> <ierpm46afs1.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Spencer Baugh <sbaugh@HIDDEN>
> Cc: 64993 <at> debbugs.gnu.org
> Date: Tue, 01 Aug 2023 12:28:14 -0400
> 
> 1. emacs -Q
> 2. Eval
> (setq global-hl-line-sticky-flag t)
> (global-hl-line-mode)
> 3. C-x 3  (make two windows)
> 4. C-h n  (make one window contain NEWS)
> 5. C-x o  (switch to the other window)
> 6. Note the line with point is highlighted in both windows
> 6. scroll-other-window
> 7. Note the line with point is no longer highlighted in the NEWS window

And why is this a bug?  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.

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 16:28:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 12:28:22 2023
Received: from localhost ([127.0.0.1]:48243 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQsEQ-0003SM-4E
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 12:28:22 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18]:49927)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1qQsEO-0003S8-Ae
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 12:28:20 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#64993: 29.1; scroll-other-window breaks
 global-hl-line-sticky-flag
In-Reply-To: <83h6pi21xu.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 01 Aug
 2023 18:54:21 +0300")
References: <iero7jqajvy.fsf@HIDDEN>
 <83h6pi21xu.fsf@HIDDEN>
Date: Tue, 01 Aug 2023 12:28:14 -0400
Message-ID: <ierpm46afs1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.0 (-)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.0 (--)

Eli Zaretskii <eliz@HIDDEN> writes:
> tags 64993 notabug
> thanks
>
>> From: Spencer Baugh <sbaugh@HIDDEN>
>> Date: Tue, 01 Aug 2023 10:59:29 -0400
>> 
>> 
>> 1. emacs -Q
>> 2. Eval
>> (setq global-hl-line-sticky-flag t)
>> (global-hl-line-mode)
>> 3. C-h n  (to open up a buffer with lots of text for scrolling)
>> 4. C-x 3
>> 5. Note the line with point is highlighted in both windows
>> 6. scroll-other-window
>> 7. Note the line with point is no longer highlighted in the other window
>
> That's a feature, and you activated it by setting
> global-hl-line-sticky-flag:
>
>   (defcustom global-hl-line-sticky-flag nil
>     "Non-nil means the Global HL-Line mode highlight appears in all windows.
>
>   (define-minor-mode global-hl-line-mode
>     "Toggle line highlighting in all buffers (Global Hl-Line mode).
>
>   If `global-hl-line-sticky-flag' is non-nil, Global Hl-Line mode
>   highlights the line about the current buffer's point in all live
>   windows.
>
> So what you describe as "the line with point is no longer highlighted
> in the other window" actually happens before the point in the selected
> window is no longer visible in the other window, and thus neither is
> the highlighted line.
>
> This is not a bug.

Oops, sorry, my reproduction was confusing, I made an error in having
both windows contain the same buffer.  They should obviously contain
different buffers otherwise your response is correct.

Try again with:

1. emacs -Q
2. Eval
(setq global-hl-line-sticky-flag t)
(global-hl-line-mode)
3. C-x 3  (make two windows)
4. C-h n  (make one window contain NEWS)
5. C-x o  (switch to the other window)
6. Note the line with point is highlighted in both windows
6. scroll-other-window
7. Note the line with point is no longer highlighted in the NEWS window





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64993 <at> debbugs.gnu.org:


Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 15:54:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 11:54:26 2023
Received: from localhost ([127.0.0.1]:48198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQrhZ-0008U8-Vq
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 11:54:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48498)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qQrhX-0008Tw-EQ
 for 64993 <at> debbugs.gnu.org; Tue, 01 Aug 2023 11:54:24 -0400
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 <eliz@HIDDEN>)
 id 1qQrhR-0000A0-O3; Tue, 01 Aug 2023 11:54:17 -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=9T+0S2Xl8LVuo8LeKtm2jceINooUbTj4S87TntCkk3Q=; b=DW9XeQ3XonhV
 T4GZ2PKobHpTouj/10u58JDgbnUn2U/YBNkvwJM+StdczD/WsL+VrLKtUMOGGmXyMX8WT1e792pwf
 zf6JSD6u93hpW5AgQvAaBkFvsArZHo6+XjPVNh8W7x6wjXoVzh7ehnhndCq8zr32jI9XcfoZ5xJmq
 FRwEeqocd1hEAukfHG9tcGg27lO2H3K+nwP4YL/kpKAZo+wXz+CABdxeof/rpxYGuTgwUIOHVQ/YT
 s1WrlCbnun+s4ocoRrNrCdzzXgb3GLxKAAwsPJsrZ+9VA2M2K9artT0MWsDbc+J+an6MyumMT6VQ6
 2Ets6FTQIZZDy1oDj40ZWQ==;
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 <eliz@HIDDEN>)
 id 1qQrhQ-0006ev-Bo; Tue, 01 Aug 2023 11:54:16 -0400
Date: Tue, 01 Aug 2023 18:54:21 +0300
Message-Id: <83h6pi21xu.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Spencer Baugh <sbaugh@HIDDEN>
In-Reply-To: <iero7jqajvy.fsf@HIDDEN>
 (message from Spencer Baugh on Tue, 01 Aug 2023 10:59:29 -0400)
Subject: Re: bug#64993: 29.1;
 scroll-other-window breaks global-hl-line-sticky-flag
References: <iero7jqajvy.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64993
Cc: 64993 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 64993 notabug
thanks

> From: Spencer Baugh <sbaugh@HIDDEN>
> Date: Tue, 01 Aug 2023 10:59:29 -0400
> 
> 
> 1. emacs -Q
> 2. Eval
> (setq global-hl-line-sticky-flag t)
> (global-hl-line-mode)
> 3. C-h n  (to open up a buffer with lots of text for scrolling)
> 4. C-x 3
> 5. Note the line with point is highlighted in both windows
> 6. scroll-other-window
> 7. Note the line with point is no longer highlighted in the other window

That's a feature, and you activated it by setting
global-hl-line-sticky-flag:

  (defcustom global-hl-line-sticky-flag nil
    "Non-nil means the Global HL-Line mode highlight appears in all windows.

  (define-minor-mode global-hl-line-mode
    "Toggle line highlighting in all buffers (Global Hl-Line mode).

  If `global-hl-line-sticky-flag' is non-nil, Global Hl-Line mode
  highlights the line about the current buffer's point in all live
  windows.

So what you describe as "the line with point is no longer highlighted
in the other window" actually happens before the point in the selected
window is no longer visible in the other window, and thus neither is
the highlighted line.

This is not a bug.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Aug 2023 14:59:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 10:59:41 2023
Received: from localhost ([127.0.0.1]:48169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQqqb-0006zD-51
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 10:59:41 -0400
Received: from lists.gnu.org ([2001:470:142::17]:53106)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sbaugh@HIDDEN>) id 1qQqqZ-0006yx-Fb
 for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 10:59:40 -0400
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 <sbaugh@HIDDEN>)
 id 1qQqqT-0006Ct-Q2
 for bug-gnu-emacs@HIDDEN; Tue, 01 Aug 2023 10:59:34 -0400
Received: from mxout5.mail.janestreet.com ([64.215.233.18])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <sbaugh@HIDDEN>)
 id 1qQqqS-0002He-4q
 for bug-gnu-emacs@HIDDEN; Tue, 01 Aug 2023 10:59:33 -0400
From: Spencer Baugh <sbaugh@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.1; scroll-other-window breaks global-hl-line-sticky-flag
Date: Tue, 01 Aug 2023 10:59:29 -0400
Message-ID: <iero7jqajvy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@HIDDEN;
 helo=mxout5.mail.janestreet.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H5=0.001,
 RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)


1. emacs -Q
2. Eval
(setq global-hl-line-sticky-flag t)
(global-hl-line-mode)
3. C-h n  (to open up a buffer with lots of text for scrolling)
4. C-x 3
5. Note the line with point is highlighted in both windows
6. scroll-other-window
7. Note the line with point is no longer highlighted in the other window


In GNU Emacs 29.1 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo
 version 1.15.12, Xaw scroll bars) of 2023-07-29 built on
 igm-qws-u22796a
Repository revision: cf24c7ac7608f41078fd2761c856892d5853b676
Repository branch: my-emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Rocky Linux 8.8 (Green Obsidian)

Configured using:
 'configure --config-cache --with-x-toolkit=lucid
 --with-gif=ifavailable'

Configured features:
CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM
XINPUT2 XPM LUCID ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr dabbrev emacsbug message mailcap yank-media puny
dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg
rfc6068 epg-config gnus-util text-property-search time-date subr-x
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
xinput2 x multi-tty make-network-process emacs)

Memory information:
((conses 16 65049 9513)
 (symbols 48 9526 0)
 (strings 32 23879 1913)
 (string-bytes 1 700788)
 (vectors 16 9398)
 (vector-slots 8 149935 13318)
 (floats 8 37 28)
 (intervals 56 256 8)
 (buffers 976 11))




Acknowledgement sent to Spencer Baugh <sbaugh@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#64993; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.