GNU bug report logs - #37848
27.0.50; hl-line and line-numbers out of sync

Previous Next

Package: emacs;

Reported by: Andrey Orst <andreyorst <at> gmail.com>

Date: Mon, 21 Oct 2019 08:29:02 UTC

Severity: normal

Found in version 27.0.50

Full log


View this message in rfc822 format

From: Andrey Orst <andreyorst <at> gmail.com>
To: 37848 <at> debbugs.gnu.org
Subject: bug#37848: Fwd: bug#37848: 27.0.50; hl-line and line-numbers out of sync
Date: Mon, 21 Oct 2019 14:43:51 +0300
[Message part 1 (text/plain, inline)]
> 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.

Unfortunately adding these hooks doesn't fix issue:

(add-hook 'pre-redisplay-function #'hl-line-highlight nil t)
(add-hook 'pre-redisplay-function #'hl-line-maybe-unhighlight nil t)
(add-hook 'pre-redisplay-function #'global-hl-line-highlight)
(add-hook 'pre-redisplay-function #'global-hl-line-maybe-unhighlight)

These two functions are used in `hl-line.el'.
I've tried pre-redisplay-functions hook as well with no effect.

-- 
Best regards,
Andrey Orst
[Message part 2 (text/html, inline)]

This bug report was last modified 5 years and 241 days ago.

Previous Next


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