aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-04-20 23:57:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-04-20 23:57:00 +0000
commit8030081c1ac0a7e849780f2af9ca6632ce9bc21e (patch)
tree72085d8c7c23045d7b63d5d5b8299047d91f4e64 /emms.el
parenta33158e96b8da3e4be465baac2e918f9127a5559 (diff)
emms.el: Fix compiler warning for Emacs22.
darcs-hash:20060420235746-1bfb2-6441ee307970da64129ecec07effb3d09acbad2b.gz
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el10
1 files changed, 5 insertions, 5 deletions
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."