emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/emms 7556382 5/5: Replace `add-to-list' with `add-hook'


From: Stefan Monnier
Subject: [elpa] externals/emms 7556382 5/5: Replace `add-to-list' with `add-hook' where appropriate
Date: Wed, 21 Apr 2021 19:08:36 -0400 (EDT)

branch: externals/emms
commit 75563821de35dacceb7bb118ee031790d0225583
Author: Yoni Rabkin <yoni@rabkins.net>
Commit: Yoni Rabkin <yoni@rabkins.net>

    Replace `add-to-list' with `add-hook' where appropriate
    
    Patch by Stefan Monnier
---
 emms-browser.el       | 10 +++++-----
 emms-info-libtag.el   |  2 +-
 emms-info-metaflac.el |  2 +-
 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:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]