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] modeline fragments do not get updated correctly when a command that changes the current-buffer is running #695

Closed molok closed 7 months ago

molok commented 7 months ago

Thank you for the bug report

Bug description

When a command that changes the current-buffer is running, the modeline does not get updated.

Steps to reproduce

eval ((with-current-buffer (sit-for 10)) and immediately remove the focus from the emacs window, the modeline doesn't change to the inactive color.

Expected behavior

I expect the modeline to be updated when a buffer is being displayed

OS

Linux

Emacs Version

29

Emacs Configurations

Doom Emacs

Error callstack

No response

Anything else

I encountered this bug because I have several scripts running using invoking emacsclient, I noticed that sometimes the modeline stopped updating for few seconds.

seagle0128 commented 7 months ago

I couldn't reproduce on my env. Can you please retry with emacs -Q?

molok commented 7 months ago

I can't reproduce it with emacs -Q, I'll try to figure out what the issue is.

seagle0128 commented 7 months ago

Can you please provide a recording?