aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-10-17 21:02:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-10-17 21:02:00 +0000
commit6db74368f95169f2122667d2c436199f4861fc7d (patch)
tree3a347000b1ee527a85a0e4b57b7d026f91da9f54
parent3d79cae684692c04a4555b6f02a9639ec2c69031 (diff)
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
-rw-r--r--emms-playing-time.el1
-rw-r--r--emms.el9
2 files changed, 1 insertions, 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