aboutsummaryrefslogtreecommitdiff
path: root/emms-browser.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2021-04-29 12:33:11 -0400
committerYoni Rabkin <yoni@rabkins.net>2021-04-29 12:33:11 -0400
commit0f9bc54e22819255a02758850bd940491923b7ce (patch)
treeae5a6ba69686fa82dabd5f179fe944e8822deb73 /emms-browser.el
parent7263ea6f64b1bbf4de89cac6501be2e5d8e3fe9c (diff)
*.el: Avoid the obsolete `defadvice` system
* emms.el: Require `nadvice` for compatibility with Emacs<24.4. * emms-player-vlc.el (emms-player-vlc-start): Use `advice-add` rather than `defadvice`. patch by Stefan Monnier
Diffstat (limited to 'emms-browser.el')
-rw-r--r--emms-browser.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/emms-browser.el b/emms-browser.el
index 1ae727b..fcb4ef3 100644
--- a/emms-browser.el
+++ b/emms-browser.el
@@ -190,10 +190,12 @@
;; artist->track instead of artist->album->track when you switch to
;; the 'singles' filter.
-;; (defadvice emms-browser-next-mapping-type
-;; (after no-album (current-mapping))
-;; (when (eq ad-return-value 'info-album)
-;; (setq ad-return-value 'info-title)))
+;; (advice-add 'emms-browser-next-mapping-type :around #'my-emms--types)
+;; (defun my-emms--types (orig-fun &rest args)
+;; (let ((type (apply orig-fun args)))
+;; (if (eq type 'info-album)
+;; 'info-title)
+;; type)))
;; (defun toggle-album-display ()
;; (if (string= emms-browser-current-filter-name "singles")