unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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:49:43 +0300	[thread overview]
Message-ID: <83tv822x14.fsf@gnu.org> (raw)
In-Reply-To: <CAAKhXobfU1hgFwmoL5kHRDQeX2W4XUYdo9EX7VXbAnpc_FS4bw@mail.gmail.com> (message from Andrey Orst on Mon, 21 Oct 2019 13:24:11 +0300)

> From: Andrey Orst <andreyorst@gmail.com>
> Date: Mon, 21 Oct 2019 13:24:11 +0300
> Cc: 37848@debbugs.gnu.org
> 
> > The line-number display has nothing to do with this, it works
> > correctly in this case.
> 
> It may work correctly, but I the issue is with the fact that line
> number and hl-line are out of sync.

More accurately, hl-line's overlay is out of sync with the window-point.

> Can I prevent this?

It's a bug in hl-line that needs to be fixed.

The display engine runs pre-redisplay-function for the window in this
case, so perhaps hl-line could install its hook there and fix its
overlay when it is called.

Patches are welcome.





  reply	other threads:[~2019-10-21 10:49 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
2019-10-21 10:24   ` Andrey Orst
2019-10-21 10:49     ` Eli Zaretskii [this message]
     [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

  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=83tv822x14.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 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).