From f618cc5bc83d3822759c5bb85d15320651ca2431 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Codru=C8=9B=20Constantin=20Gu=C8=99oi?= Date: Sat, 8 May 2021 13:40:03 +0200 Subject: [PATCH] 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 --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 93a0e07aba0..da33ee815fe 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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 -- 2.39.2