aboutsummaryrefslogtreecommitdiff
path: root/emms-tag-editor.el
diff options
context:
space:
mode:
authorTassilo Horn <tassilo@member.fsf.org>2007-08-17 15:04:00 +0000
committerTassilo Horn <tassilo@member.fsf.org>2007-08-17 15:04:00 +0000
commit44f24c3b68c3155099fdc484804d00ddd909170d (patch)
tree459209bb4cec2047194d4bcff9aa1d4d4c421383 /emms-tag-editor.el
parent270b8533024fae1e056a9d5dab03b21cbb8425be (diff)
docs-for-editing-tags-and-renaming.dpatch
darcs-hash:20070817150402-c06f4-6e36d700851b4b80a6ac7408e630a20e35e06394.gz
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)