aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-01-04 06:10:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-01-04 06:10:00 +0000
commit7fe71e6381915e775deed571f7b5c0babdf0f394 (patch)
tree1e8a2b50a9a1e80748917a8c093fd604aee28bda /emms.el
parent76389c6781d42947ce36fa8b260391935532a941 (diff)
Use timers in a way that is compatible with both Emacs and XEmacs.
darcs-hash:20060104061024-1bfb2-a35972f84a96c27a9a4bee6a245a8cbe2d6a8dd1.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emms.el b/emms.el
index 73dfd86..e17f8eb 100644
--- a/emms.el
+++ b/emms.el
@@ -363,6 +363,14 @@ See `emms-repeat-track'."
(when (not emms-player-playing-p)
(error "No EMMS player playing right now")))
+(defun emms-cancel-timer (timer)
+ "Cancel the given TIMER."
+ (when timer
+ (cond ((fboundp 'cancel-timer)
+ (cancel-timer timer))
+ ((fboundp 'delete-itimer)
+ (delete-itimer timer)))))
+
;;; Tracks