Fix moving directories with the same name to trash

* lisp/files.el (move-file-to-trash): Allow moving several
directories with the same name to Trash (bug#48280).

Copyright-paperwork-exempt: yes
This commit is contained in:
Codruț Constantin Gușoi 2021-05-08 13:40:03 +02:00 committed by Lars Ingebrigtsen
parent e4e8a1e834
commit f618cc5bc8

View file

@ -7932,7 +7932,7 @@ Otherwise, trash FILENAME using the freedesktop.org conventions,
(expand-file-name files-base trash-files-dir))
(setq overwrite t
files-base (file-name-nondirectory
(make-temp-file
(make-temp-name
(expand-file-name
files-base trash-files-dir)))))
(setq info-fn (expand-file-name