aboutsummaryrefslogtreecommitdiff
path: root/emms-tag-editor.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-12-07 14:35:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-12-07 14:35:00 +0000
commit3c42fe2cc29a102faddc818a74fac9dfe34bbeac (patch)
tree693ad5b37263b7924472c61e8ddbec72f8cb45c0 /emms-tag-editor.el
parenta37a70fffeeb70f42964a3d24d508c32eee2ec0b (diff)
Fix various byte-compiler warnings throughout
darcs-hash:20061207143511-1bfb2-90e8bee5074d6ef5ca4c9998886d28eedf6df671.gz
Diffstat (limited to 'emms-tag-editor.el')
-rw-r--r--emms-tag-editor.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emms-tag-editor.el b/emms-tag-editor.el
index 5337910..5bfb3ee 100644
--- a/emms-tag-editor.el
+++ b/emms-tag-editor.el
@@ -348,8 +348,11 @@ edit buffer."
(funcall emms-playlist-update-track-function))
;; clear modified tag
(emms-track-set track 'tag-modified nil))))
- (if (and need-sync (y-or-n-p "You have change some track names, sync the cache? "))
- (emms-cache-sync))
+ (if (and (featurep 'emms-cache)
+ need-sync
+ (y-or-n-p "You have change some track names, sync the cache? "))
+ (and (fboundp 'emms-cache-sync) ; silence byte-compiler
+ (emms-cache-sync)))
(emms-tag-editor-display-log-buffer-maybe)
(message "Set all mp3 tag done!")))
(if arg (bury-buffer)))