(move-file-to-trash): Avoid recursive trashing if rename-file calls delete-file.
+2008-09-20 David De La Harpe Golden <david@harpegolden.net>
+
+ * files.el (move-file-to-trash): Avoid recursive trashing if
+ rename-file calls delete-file.
+
2008-09-20 Glenn Morris <rgm@gnu.org>
* play/fortune.el: Remove leading `*' from defcustom docs.
(and (string-match fn trash-dir)
(error "Filename `%s' is same or parent directory of trash-directory"
filename))
- (rename-file fn new-fn)))))
+ (let ((delete-by-moving-to-trash nil))
+ (rename-file fn new-fn))))))
\f
(define-key ctl-x-map "\C-f" 'find-file)