GNU bug report logs - #58721
28.2; dired with delete-by-moving-to-trash can't trash directory twice

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Sat, 22 Oct 2022 18:24:01 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mike Kupfer <mkupfer <at> alum.berkeley.edu>
Cc: 58721 <at> debbugs.gnu.org, gusbrs.2016 <at> gmail.com
Subject: bug#58721: 28.2; dired with delete-by-moving-to-trash can't trash directory twice
Date: Sat, 29 Oct 2022 18:48:35 +0300
> From: Mike Kupfer <mkupfer <at> alum.berkeley.edu>
> Date: Sat, 29 Oct 2022 08:24:53 -0700
> 
> I played with this some more this morning, this time on Emacs 29.  It
> looks like rename-file should have called copy-directory as
> 
> copy-directory("/tmp/emacs-git"
>   "/home/kupfer/.local/share/Trash/files/emacs-gitH0lx1e/" t nil t)

I don't think we can change how rename-file behaves when the argument
is a directory.  Any changes we need to make must be in
move-file-to-trash, not in primitives it calls.

Thanks.




This bug report was last modified 2 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.