GNU bug report logs -
#44059
28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Sun, 18 Oct 2020 09:29:02 UTC
Severity: minor
Found in version 28.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 44059 <at> debbugs.gnu.org (full text, mbox):
* Lars Ingebrigtsen <larsi <at> gnus.org> [2020-10-19 12:55]:
> Jean Louis <bugs <at> gnu.support> writes:
>
> > then I cannot delete files in Trash, you can see what is happening,
> > files may get a backup in Trash directory, but they do not get deleted,
> > I need to invoke shell command or disable delete-by-moving-to-trash
>
> I'm not sure whether that's a malfeature or not -- if you've told Emacs
> that everything you delete should go to the trash can, then even
> deleting things in the trash can should perhaps go there?
>
> Perhaps a new value to delete-by-moving-to-trash that would mean "delete
> if we're trying to delete in the trash can"?
>
> And... there doesn't seem to be any commands in Emacs for emptying the
> trash can? Shouldn't there be?
I think that is related to Dired and maybe some functions without
Dired.
I have solved the problem by adding in ~/tmp/Trash/.dir-locals.el
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((dired-mode . ((delete-by-moving-to-trash . nil))))
In my opinion, if the delete-by-moving-to-trash is true, that file
should be made there read-only and user should be informed in Info
manual or in the setting of that variable including setting of
variable for trash location.
Practical error case is that I was recording screen and deleting
various videos, screen recording was taking so much space, I lost all
space on hard disk. And I could not delete things inside of the
Trash. It was emergency already to do something, my solution was
above.
This bug report was last modified 3 years and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.