aboutsummaryrefslogtreecommitdiff
path: root/emms-tag-editor.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms-tag-editor.el')
-rw-r--r--emms-tag-editor.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/emms-tag-editor.el b/emms-tag-editor.el
index 6485916..1f7cbbb 100644
--- a/emms-tag-editor.el
+++ b/emms-tag-editor.el
@@ -546,7 +546,11 @@ With prefix argument, bury the tag edit buffer."
(emms-track-name track)
(emms-track-get track 'newname))))
(setq filename (emms-track-get track 'newname))
- (rename-file (emms-track-name track) filename)
+ (ignore-errors
+ ;; Ignore errors so that renaming multiple files doesn't stop
+ ;; because of one that fails. In that case it's probably
+ ;; old-file = newfile which causes the problem.
+ (rename-file (emms-track-name track) filename 1))
(emms-track-set old 'name filename)
;; for re-enter this function
(emms-track-set track 'name filename)