From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47960: 28.0.50; delete-by-moving-to-trash fails on directories? Date: Thu, 22 Apr 2021 21:11:19 +0000 Message-ID: References: <87mttq6o6n.fsf@protesilaos.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25003"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47960@debbugs.gnu.org To: Protesilaos Stavrou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 22 23:12:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZgcL-0006Cq-Mg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 23:12:09 +0200 Original-Received: from localhost ([::1]:33446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZgcK-0003vs-La for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 17:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZgcE-0003vm-Bw for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 17:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZgcE-0001IV-4a for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZgcD-0006Rw-UM for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 17:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Apr 2021 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47960 X-GNU-PR-Package: emacs Original-Received: via spool by 47960-submit@debbugs.gnu.org id=B47960.161912588224739 (code B ref 47960); Thu, 22 Apr 2021 21:12:01 +0000 Original-Received: (at 47960) by debbugs.gnu.org; 22 Apr 2021 21:11:22 +0000 Original-Received: from localhost ([127.0.0.1]:35678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZgbZ-0006Qx-OF for submit@debbugs.gnu.org; Thu, 22 Apr 2021 17:11:21 -0400 Original-Received: from heytings.org ([95.142.160.155]:49360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZgbY-0006Qq-Lz for 47960@debbugs.gnu.org; Thu, 22 Apr 2021 17:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1619125879; bh=YZtQ0IJlo2gaG2Lv1lLIS5Y843if/PAb7wW4NtAMiGY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=nSirWBl3ElhS4lFgRNnfSxG1cBUTVvz6wtWaguN3xtsiyFc/AkmAnt3ngjv75Gam4 a6HUazfw0e8d7/dr0+D7dk9GI0c12IWOoz+Wqrm/lWVZe+Aqf3dwLHvqgT4lbsNEAj IvVYuzy6wva0HH2lPIRL3rM9vvd6pnXNIvjY9h4ab6wCp3MoW9G7C/LNiB9DcDK0Mb +DUCrZJ0tQSGZDuOw8mItwRmKg86NzREIm8zV35aXRh0uyq7+CdsJQUzwudjxuiY8w LekS/ClzErUu1PPFwQlre+jlr5T8U0z5Zs+OtP/ISeDJXolJ1oM2wzUTo/1NQ3M+n+ j9qLBSFgr69Pw== In-Reply-To: <87mttq6o6n.fsf@protesilaos.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204718 Archived-At: > > 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'. > Are you sure this bug is not due to something going wrong on your machine? I'm unable to reproduce this bug here, both Dired and Eshell seem to work as expected. Did you by any chance define a 'system-move-file-to-trash' function? Does it work when you (setq trash-directory )?