unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 44059@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#44059: 28.0.50; Trash files cannot be deleted properly if delete-by-moving-to-trash is set
Date: Mon, 26 Oct 2020 19:03:22 +0300	[thread overview]
Message-ID: <X5bzSneWL0y3ILcw@protected.rcdrun.com> (raw)
In-Reply-To: <83lfg2p8os.fsf@gnu.org>

* Eli Zaretskii <eliz@gnu.org> [2020-10-19 17:55]:
> > From: Lars Ingebrigtsen <larsi@gnus.org>
> > Date: Mon, 19 Oct 2020 11:54:30 +0200
> > Cc: 44059@debbugs.gnu.org
> > 
> > And... there doesn't seem to be any commands in Emacs for emptying the
> > trash can?  Shouldn't there be?
> 
> AFAIU, doing this for freedesktop-style trash isn't trivial.

Actually it says that Emacs already does that:

Hide Trash Directory: Value Menu Directory: /home/data1/protected/tmp/Trash/
    State : SAVED and set.
   Directory for ‘move-file-to-trash’ to move files and directories to. Hide
   This directory is used only when the function ‘system-move-file-to-trash’
   is not defined.
   Relative paths are interpreted relative to ‘default-directory’.
   If the value is nil, Emacs uses a freedesktop.org-style trashcan.

So if I set the variable: delete-by-moving-to-trash and not set
trash-directory it will use freedeskstop style. I did not verify, I
just assume it.

There is no big problem. If delete-by-moving-to-trash is set then
Tramp says it was trashed, which is confusing.





  parent reply	other threads:[~2020-10-26 16:03 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
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=X5bzSneWL0y3ILcw@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=44059@debbugs.gnu.org \
    --cc=eliz@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).