pft / mingus

GNU Emacs control of Music Player Daemon (MPD)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No faces in playlist

seagle0128 opened this issue · comments

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)))

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)