From: Protesilaos Stavrou <info@protesilaos.com>
To: 47960@debbugs.gnu.org
Subject: bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories?
Date: Thu, 22 Apr 2021 23:48:16 +0300 [thread overview]
Message-ID: <87mttq6o6n.fsf@protesilaos.com> (raw)
On trunk the (setq delete-by-moving-to-trash t) no longer works in Dired
and Eshell when trying to delete a directory.
Steps to reproduce with emacs -Q:
+ Evaluate (setq delete-by-moving-to-trash t).
+ Use 'C-x C-j' to jump to a dired buffer.
+ Then type '+' and create a new directory named "test" or whatever.
+ With point over the newly created directory ,type "D", and confirm.
You get an error: "file-error: Renaming: Not a directory [...]"
Same if you try to delete the directory with the 'rm -r' command from
inside eshell (though 'rmdir' works in this case).
For completeness, M-x shell works with either 'rm -r' and 'rmdir'.
--
Protesilaos Stavrou
https://protesilaos.com
next reply other threads:[~2021-04-22 20:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 20:48 Protesilaos Stavrou [this message]
2021-04-22 21:11 ` bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories? Gregory Heytings
2021-04-22 21:42 ` Protesilaos Stavrou
2021-04-23 20:39 ` Gregory Heytings
2021-05-07 20:41 ` Gregory Heytings
2021-05-24 22:26 ` Lars Ingebrigtsen
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=87mttq6o6n.fsf@protesilaos.com \
--to=info@protesilaos.com \
--cc=47960@debbugs.gnu.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).