aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2021-04-21 11:26:40 -0400
committerYoni Rabkin <yoni@rabkins.net>2021-04-21 11:26:40 -0400
commit75563821de35dacceb7bb118ee031790d0225583 (patch)
tree6fb4ff7e292662afc1aa59cf818e7cbd9113ef1b
parent725feceb896b3a70b0988f32eeee0d79ca102521 (diff)
Replace `add-to-list' with `add-hook' where appropriate
Patch by Stefan Monnier
-rw-r--r--emms-browser.el10
-rw-r--r--emms-info-libtag.el2
-rw-r--r--emms-info-metaflac.el2
3 files changed, 7 insertions, 7 deletions
diff --git a/emms-browser.el b/emms-browser.el
index 78c9626..5f97104 100644
--- a/emms-browser.el
+++ b/emms-browser.el
@@ -1489,12 +1489,12 @@ Toggle between selecting browser, playlist or hiding both. Tries
to behave sanely if the user has manually changed the window
configuration."
(interactive)
- (add-to-list 'emms-browser-show-display-hook
- 'emms-browser-display-playlist)
- (add-to-list 'emms-browser-hide-display-hook
- 'emms-browser-hide-linked-window)
+ (add-hook 'emms-browser-show-display-hook
+ #'emms-browser-display-playlist)
+ (add-hook 'emms-browser-hide-display-hook
+ #'emms-browser-hide-linked-window)
;; switch to the playlist window when adding tracks?
- (add-to-list 'emms-browser-tracks-added-hook
+ (add-hook 'emms-browser-tracks-added-hook
(lambda (start-of-tracks) (interactive)
(let (playlist-window)
(when emms-browser-switch-to-playlist-on-add
diff --git a/emms-info-libtag.el b/emms-info-libtag.el
index 28add10..4269aba 100644
--- a/emms-info-libtag.el
+++ b/emms-info-libtag.el
@@ -33,7 +33,7 @@
;; To activate this method for getting info, use something like:
;; (require 'emms-info-libtag)
-;; (add-to-list 'emms-info-functions 'emms-info-libtag)
+;; (add-hook 'emms-info-functions 'emms-info-libtag)
;; Note that you should remove emms-info-mp3info and emms-info-ogginfo
;; from the emms-info-functions list if you want to avoid
diff --git a/emms-info-metaflac.el b/emms-info-metaflac.el
index d9eebbc..79131cb 100644
--- a/emms-info-metaflac.el
+++ b/emms-info-metaflac.el
@@ -34,7 +34,7 @@
;; To activate this method for getting info, use something like:
;; (require 'emms-info-metaflac)
-;; (add-to-list 'emms-info-methods-list 'emms-info-metaflac)
+;; (add-hook 'emms-info-methods-list 'emms-info-metaflac)
;;; Code: