summaryrefslogtreecommitdiffhomepage
path: root/emms
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@imladris.local>2018-12-22 00:04:01 +0000
committerJose Antonio Ortega Ruiz <jao@imladris.local>2018-12-22 00:04:01 +0000
commit6dd1f2254fe74618b23e440fc36ac365fad11ae4 (patch)
tree11e1cffbe7a4646c874adb24c227bf1017942725 /emms
parentbb36dc67df4de4af9cefd3882f9998f4f78e2b8f (diff)
downloadelibs-6dd1f2254fe74618b23e440fc36ac365fad11ae4.tar.gz
elibs-6dd1f2254fe74618b23e440fc36ac365fad11ae4.tar.bz2
emms utils: locate correctly current song
Diffstat (limited to 'emms')
-rw-r--r--emms/jao-emms-random-album.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/emms/jao-emms-random-album.el b/emms/jao-emms-random-album.el
index b959e36..bda8213 100644
--- a/emms/jao-emms-random-album.el
+++ b/emms/jao-emms-random-album.el
@@ -1,6 +1,6 @@
;; jao-emms-random-album.el -- play random albums in emms
-;; Copyright (C) 2009, 2010, 2017 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2017, 2018 Jose Antonio Ortega Ruiz
;; Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
;; Start date: Sat Jul 04, 2009 13:06
@@ -95,11 +95,10 @@
(ignore-errors (emms-browser-clear-playlist))
(emms-browse-by-album)
(jao-emms-goto-random-album)
- (emms-browser-add-tracks-and-play)
- (when jao-emms-random-album-notify-p
- (jao-notify (substring-no-properties (thing-at-point 'line) 0 -1)
- "Next album"
- jao-emms-random-album-notify-icon))
+ (let ((album (substring-no-properties (thing-at-point 'line) 0 -1)))
+ (emms-browser-add-tracks-and-play)
+ (when jao-emms-random-album-notify-p
+ (jao-notify album "Next album" jao-emms-random-album-notify-icon)))
(emms-browser-bury-buffer))))
(defun jao-emms-random-album-reset ()