Emacs: Reset now-playing when stopping MER

This commit is contained in:
Tom Willemsen 2012-12-11 01:46:48 +01:00
parent 0195a2c07c
commit b87a961130

View file

@ -68,7 +68,8 @@
(defun metal-express-radio-stop () (defun metal-express-radio-stop ()
"Stop listening to Metal Express Radio." "Stop listening to Metal Express Radio."
(interactive) (interactive)
(kill-process (get-buffer-process "*Metal Express Radio*"))) (kill-process (get-buffer-process "*Metal Express Radio*"))
(setq metal-express-radio-currently-playing nil))
(add-hook 'metal-express-radio-song-changed-hook (add-hook 'metal-express-radio-song-changed-hook
'metal-express-radio-echo-currently-playing) 'metal-express-radio-echo-currently-playing)