From 6db74368f95169f2122667d2c436199f4861fc7d Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Tue, 17 Oct 2006 21:02:00 +0000 Subject: Since emms-player-seeked-to-functions and emms-player-time-set-functions hooks do the same thing, replace the former with the latter darcs-hash:20061017210238-1bfb2-bdadf89a3b753c5704e7252ff21d87ae6c59d79d.gz --- emms-playing-time.el | 1 - emms.el | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/emms-playing-time.el b/emms-playing-time.el index a9f08c9..7b078e0 100644 --- a/emms-playing-time.el +++ b/emms-playing-time.el @@ -117,7 +117,6 @@ should enable `emms-playing-time-display-p' first, though." (add-hook 'emms-player-finished-hook 'emms-playing-time-stop) (add-hook 'emms-player-paused-hook 'emms-playing-time-pause) (add-hook 'emms-player-seeked-functions 'emms-playing-time-seek) - (add-hook 'emms-player-seeked-to-functions 'emms-playing-time-set) (add-hook 'emms-player-time-set-functions 'emms-playing-time-set)) (setq emms-playing-time-display-p nil) (emms-playing-time-stop) diff --git a/emms.el b/emms.el index 75b961a..291a330 100644 --- a/emms.el +++ b/emms.el @@ -219,13 +219,6 @@ seconds the player did seek." :group 'emms :type 'hook) -(defcustom emms-player-seeked-to-functions nil - "*Functions called when a player is seeking. -The functions are called with a single argument, the amount of -seconds the player seeked to." - :group 'emms - :type 'hook) - (defcustom emms-player-time-set-functions nil "*Functions called when a player is setting the elapsed time of a track. The functions are called with a single argument, the time elapsed @@ -1349,7 +1342,7 @@ or negative to seek backwards." (if (not seek) (error "Player does not know how to seek-to") (funcall seek seconds) - (run-hook-with-args 'emms-player-seeked-to-functions seconds))))) + (run-hook-with-args 'emms-player-time-set-functions seconds))))) ;;; Dictionaries -- cgit v1.2.3