From: Eli Zaretskii <eliz@gnu.org>
To: Andrey Orst <andreyorst@gmail.com>
Cc: 37848@debbugs.gnu.org
Subject: bug#37848: 27.0.50; hl-line and line-numbers out of sync
Date: Mon, 21 Oct 2019 13:16:59 +0300 [thread overview]
Message-ID: <83wocy2yjo.fsf@gnu.org> (raw)
In-Reply-To: <CAAKhXobGDoegMg3YZErtoOLRTVBfjSJgzw7twApTA=drn9uunA@mail.gmail.com> (message from Andrey Orst on Mon, 21 Oct 2019 11:27:58 +0300)
> From: Andrey Orst <andreyorst@gmail.com>
> Date: Mon, 21 Oct 2019 11:27:58 +0300
>
> emacs -q --eval "(progn
> (hl-line-mode t)
> (set-face-attribute 'line-number-current-line nil :foreground \"#FF0000\")
> (display-line-numbers-mode t)
> (split-window-right)
> (switch-to-buffer \"*Messages*\"))"
>
> This will open two windows, one with *scratch* and other with *Messages*
> buffer. Try pasting some long text into the *scratch* buffer, and
> scrolling with mouse wheel. The current line number and hl-line
> highlighting should be in sync.
>
> Then focus window with *Messages* buffer, and try scrolling in *scratch*
> buffer again with mouse wheel. You'll notice that after scrolling the view
> beyond the point, current line number remains correct, while hl-line highlighter
> doesn't move:
>
> image.png
>
> It looks like, while Emacs always keeps the point in the view, hl-line
> acts like editors that alow point to leave the view, but only when
> buffer is not in focus.
The problem is with hl-line mode: it doesn't move its overlay when
point moves due to redisplay keeping it in the viewport.
The line-number display has nothing to do with this, it works
correctly in this case.
Thanks.
next prev parent reply other threads:[~2019-10-21 10:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-21 8:27 bug#37848: 27.0.50; hl-line and line-numbers out of sync Andrey Orst
2019-10-21 10:16 ` Eli Zaretskii [this message]
2019-10-21 10:24 ` Andrey Orst
2019-10-21 10:49 ` Eli Zaretskii
[not found] ` <CAAKhXoYYd-z8PZdxTB+Z3ATMwgY3kh=Y-05zOUa2vkeVMC78fg@mail.gmail.com>
2019-10-21 11:43 ` bug#37848: Fwd: " Andrey Orst
2019-10-21 12:58 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wocy2yjo.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=37848@debbugs.gnu.org \
--cc=andreyorst@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.