pft / mingus

GNU Emacs control of Music Player Daemon (MPD)
104 stars 19 forks source link

No faces in playlist #42

Closed seagle0128 closed 1 year ago

seagle0128 commented 2 years ago

While playing and switch to the playlist buffer, the faces disappear after one sec. If stop the timer (minugs-cancel-timer), and refresh the buffer, all faces are correct. If click to play the next one, faces disappear again.

According to my investigation, it's related to mingus-set-NP-mark and mingus-timer-handler. My workaround is

(advice-add #'mingus-set-NP-mark :after (lambda (&rest _) (mingus-redraw-buffer)))
seagle0128 commented 2 years ago

I found the root cause. mingus-playlist-mode is called in mingus-switch-to-playlist, which will remove all faces from the playlist buffer.

The current workaround is

(add-hook 'mingus-playlist-hooks #'mingus-redraw-buffer)