seagle0128 / doom-modeline

A fancy and fast mode-line inspired by minimalism design.
https://seagle0128.github.io/doom-modeline/
GNU General Public License v3.0
1.27k stars 157 forks source link

[Bug] Buffer line number does not update consistently #657

Closed georgek closed 1 year ago

georgek commented 1 year ago

Thank you for the bug report

Bug description

Using Emacs 29.1. With doom-modeline active, the line number (and column number) displayed in the modeline does not update consistently when moving point around the buffer with the keyboard.

I have reproduced this on two different builds, one a pgtk build and one a --with-x-toolkit=lucid build.

I have reproduced this with emacs -Q to rule out any of my config making a difference.

Steps to reproduce

Load everything in an emacs -Q session like:

(add-to-list 'load-path "s")
(add-to-list 'load-path "dash")
(add-to-list 'load-path "compat")
(add-to-list 'load-path "nerd-icons")
(add-to-list 'load-path "shrink-path")
(add-to-list 'load-path "doom-modeline")
(add-to-list 'load-path "f")
(require 'doom-modeline)

Open a file, move around with C-n etc. and observe the line number indicator. Updating is inconsistent. Can sometimes be coaxed by changing column. Seems to always update when using the mouse.

Expected behavior

Line number indicator is updated instantly as with emacs -Q.

OS

Linux

Emacs Version

29 (gccemacs)

Emacs Configurations

emacs -Q

Anything else

I tried (setq inhibit-compacting-font-caches t) just in case, but it makes no difference.

georgek commented 1 year ago

Works as expected with Emacs 27.2

georgek commented 1 year ago

Also works as expected with Emacs 28.2 with native compilation (gccemacs). So appears to be only Emacs 29 related.