mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
(move-file-to-trash): Bind backup-directory-alist to nil before
uniquifying backup trash file name.
This commit is contained in:
parent
7d96af1ab4
commit
d5ac5779a4
@ -5992,7 +5992,8 @@ Returns nil on success."
|
||||
(and (file-exists-p new-fn)
|
||||
;; make new-fn unique.
|
||||
;; example: "~/.Trash/abc.txt" -> "~/.Trash/abc.txt.~1~"
|
||||
(let ((version-control t))
|
||||
(let ((version-control t)
|
||||
(backup-directory-alist nil))
|
||||
(setq new-fn (car (find-backup-file-name new-fn)))))
|
||||
;; stop processing if fn is same or parent directory of trash-dir.
|
||||
(and (string-match fn trash-dir)
|
||||
|
Loading…
Reference in New Issue
Block a user