From 8030081c1ac0a7e849780f2af9ca6632ce9bc21e Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Thu, 20 Apr 2006 23:57:00 +0000 Subject: emms.el: Fix compiler warning for Emacs22. darcs-hash:20060420235746-1bfb2-6441ee307970da64129ecec07effb3d09acbad2b.gz --- emms.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'emms.el') diff --git a/emms.el b/emms.el index 9b5abec..aa2a6e6 100644 --- a/emms.el +++ b/emms.el @@ -371,11 +371,11 @@ See `emms-repeat-track'." ;;; Compatibility functions -(if (not (fboundp 'propertize)) - (defun emms-propertize (string &rest properties) - (set-text-properties 0 (length string) properties string) - string) - (defalias 'emms-propertize 'propertize)) +(defun emms-propertize (string &rest properties) + (if (fboundp 'propertize) + (apply #'propertize string properties) + (set-text-properties 0 (length string) properties string) + string)) (defun emms-cancel-timer (timer) "Cancel the given TIMER." -- cgit v1.2.3