all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 44059@debbugs.gnu.org
Subject: bug#44059: 28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set
Date: Mon, 19 Oct 2020 14:30:50 +0300	[thread overview]
Message-ID: <20201019113050.GA19325@protected.rcdrun.com> (raw)
In-Reply-To: <874kmqlew9.fsf@gnus.org>

* Lars Ingebrigtsen <larsi@gnus.org> [2020-10-19 12:55]:
> Jean Louis <bugs@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.





  reply	other threads:[~2020-10-19 11:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-18  9:27 bug#44059: 28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set Jean Louis
     [not found] ` <handler.44059.B.16030132896481.ack@debbugs.gnu.org>
2020-10-18  9:32   ` bug#44059: Acknowledgement (28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set) Jean Louis
2020-10-19  9:54 ` bug#44059: 28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set Lars Ingebrigtsen
2020-10-19 11:30   ` Jean Louis [this message]
2022-02-12  8:05     ` Lars Ingebrigtsen
2020-10-19 14:54   ` Eli Zaretskii
2020-10-19 15:13     ` Stefan Kangas
2020-10-26 16:03     ` Jean Louis
2020-10-26 19:44       ` Eli Zaretskii
2020-10-28 11:42         ` Jean Louis
2020-10-28 15:36           ` Eli Zaretskii
2020-10-28 17:39             ` Jean Louis
2020-10-26 20:07       ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201019113050.GA19325@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=44059@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.