unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories?
@ 2021-04-22 20:48 Protesilaos Stavrou
  2021-04-22 21:11 ` Gregory Heytings
  0 siblings, 1 reply; 6+ messages in thread
From: Protesilaos Stavrou @ 2021-04-22 20:48 UTC (permalink / raw)
  To: 47960

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-24 22:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-22 20:48 bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories? Protesilaos Stavrou
2021-04-22 21:11 ` 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

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).