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 18:54:21 +0300 Message-ID: <83h6pi21xu.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20659"; 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 17:55:16 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 1qQriN-0005A9-Vj for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 17:55:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQriD-0005Y2-1e; Tue, 01 Aug 2023 11:55: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 1qQriB-0005Xg-OG for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 11:55: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 1qQriA-0000GI-Th for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 11:55:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQriA-0008V1-1x for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 11:55: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 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64993 X-GNU-PR-Package: emacs Original-Received: via spool by 64993-submit@debbugs.gnu.org id=B64993.169090526632625 (code B ref 64993); Tue, 01 Aug 2023 15:55:02 +0000 Original-Received: (at 64993) by debbugs.gnu.org; 1 Aug 2023 15:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:48198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQrhZ-0008U8-Vq for submit@debbugs.gnu.org; Tue, 01 Aug 2023 11:54:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQrhX-0008Tw-EQ for 64993@debbugs.gnu.org; Tue, 01 Aug 2023 11:54:24 -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 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==; 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 1qQrhQ-0006ev-Bo; Tue, 01 Aug 2023 11:54:16 -0400 In-Reply-To: (message from Spencer Baugh on Tue, 01 Aug 2023 10:59:29 -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:266456 Archived-At: tags 64993 notabug thanks > From: Spencer Baugh > 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.