aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-playlist-limit.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emms-playlist-limit.el b/emms-playlist-limit.el
index d9246cd..95816a2 100644
--- a/emms-playlist-limit.el
+++ b/emms-playlist-limit.el
@@ -47,9 +47,11 @@
(emms-playlist-track-at) (quote ,attribute))
(emms-track-get
(emms-playlist-selected-track) (quote ,attribute))))
+ (attr-name ,(emms-replace-regexp-in-string
+ "info-" "" (symbol-name attribute)))
(fmt (if curr
- (format "Limit to artist (regexp = %s): " curr)
- (format "Limit to artist (regexp): "))))
+ (format "Limit to %s (regexp = %s): " attr-name curr)
+ (format "Limit to %s (regexp): " attr-name))))
(read-string fmt))))
(when (string= regexp "")
(setq regexp (emms-track-get (emms-playlist-track-at) (quote ,attribute))))