summaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/jao-emms-info-track.el6
-rw-r--r--media/jao-mpris.el3
2 files changed, 5 insertions, 4 deletions
diff --git a/media/jao-emms-info-track.el b/media/jao-emms-info-track.el
index d2e2867..67f74c8 100644
--- a/media/jao-emms-info-track.el
+++ b/media/jao-emms-info-track.el
@@ -186,8 +186,8 @@
(t (jao-emms-info-track-description track nil play-len))))))
(jao-emms--echo-string "")))
-(defun jao-emms-enable-minibuffer ()
- (jao-minibuffer-add-variable 'jao-emms-echo-string t)
+(defun jao-emms-enable-minibuffer (minibuffer-order)
+ (jao-minibuffer-add-variable 'jao-emms-echo-string minibuffer-order)
(dolist (h '(emms-track-updated-functions
emms-player-finished-hook
emms-player-stopped-hook
@@ -200,7 +200,7 @@
(setq emms-track-description-function 'jao-emms-info-track-description)
(setq jao-emms-show-osd-p show-osd)
(add-hook 'emms-player-started-hook 'jao-emms-show-osd-hook)
- (when minibuffer (jao-emms-enable-minibuffer))
+ (when minibuffer (jao-emms-enable-minibuffer minibuffer))
(unless show-echo-line
(eval-after-load 'emms-player-mpd
'(remove-hook 'emms-player-started-hook 'emms-player-mpd-show)))
diff --git a/media/jao-mpris.el b/media/jao-mpris.el
index 4d6d294..7cbacb7 100644
--- a/media/jao-mpris.el
+++ b/media/jao-mpris.el
@@ -100,7 +100,8 @@
(when jao-mpris--current
(jao-notify (format "%s: %s" (jao-mpris--get 'status) (jao-mpris--format)))))
-(jao-minibuffer-add-variable 'jao-mpris-track-string t)
+(defun jao-mpris-minibuffer-order (order)
+ (jao-minibuffer-add-variable 'jao-mpris-track-string order))
(defun jao-mpris--handler (iname properties &rest args)
(when properties