From: Spencer Baugh <sbaugh@janestreet.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 64993@debbugs.gnu.org
Subject: bug#64993: 29.1; scroll-other-window breaks global-hl-line-sticky-flag
Date: Tue, 01 Aug 2023 12:28:14 -0400 [thread overview]
Message-ID: <ierpm46afs1.fsf@janestreet.com> (raw)
In-Reply-To: <83h6pi21xu.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 01 Aug 2023 18:54:21 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> tags 64993 notabug
> thanks
>
>> From: Spencer Baugh <sbaugh@janestreet.com>
>> 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
next prev parent reply other threads:[~2023-08-01 16:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-01 14:59 bug#64993: 29.1; scroll-other-window breaks global-hl-line-sticky-flag Spencer Baugh
2023-08-01 15:54 ` Eli Zaretskii
2023-08-01 16:28 ` Spencer Baugh [this message]
2023-08-01 16:57 ` Eli Zaretskii
2023-08-01 17:13 ` Spencer Baugh
2023-08-01 17:20 ` Eli Zaretskii
2023-08-01 17:32 ` Spencer Baugh
2023-08-01 17:39 ` Eli Zaretskii
2023-08-01 17:46 ` Spencer Baugh
2023-08-01 18:04 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ierpm46afs1.fsf@janestreet.com \
--to=sbaugh@janestreet.com \
--cc=64993@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).