From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#58721: 28.2; dired with delete-by-moving-to-trash can't trash directory twice Date: Fri, 28 Oct 2022 08:26:15 -0700 Message-ID: References: <83r0ytl042.fsf@gnu.org> <83bkpxkwcd.fsf@gnu.org> <838rl1ku1b.fsf@gnu.org> <837d0lks02.fsf@gnu.org> <83lep0jspb.fsf@gnu.org> <83edusjhpe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58721@debbugs.gnu.org To: Gustavo Barros , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 28 17:27:22 2022 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 1ooRGT-000A5Z-NJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Oct 2022 17:27:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooRGC-0007by-Ew; Fri, 28 Oct 2022 11:27:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooRGA-0007bf-LX for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 11:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooRGA-0006VE-AT for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ooRG9-0004Up-Ua for bug-gnu-emacs@gnu.org; Fri, 28 Oct 2022 11:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Oct 2022 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58721 X-GNU-PR-Package: emacs Original-Received: via spool by 58721-submit@debbugs.gnu.org id=B58721.166697078417238 (code B ref 58721); Fri, 28 Oct 2022 15:27:01 +0000 Original-Received: (at 58721) by debbugs.gnu.org; 28 Oct 2022 15:26:24 +0000 Original-Received: from localhost ([127.0.0.1]:34078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooRFY-0004Ty-D8 for submit@debbugs.gnu.org; Fri, 28 Oct 2022 11:26:24 -0400 Original-Received: from mail-oa1-f46.google.com ([209.85.160.46]:43543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ooRFV-0004Tj-Nt for 58721@debbugs.gnu.org; Fri, 28 Oct 2022 11:26:23 -0400 Original-Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-13c2cfd1126so6625682fac.10 for <58721@debbugs.gnu.org>; Fri, 28 Oct 2022 08:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=aZ/DFvte+Czwdk8NlpaMhb6wXYjEnns1tsu3aQaR4r0=; b=Pupe6K7NMtcop4UYo4Bf7nN5clqe3FZyUHkLU/svlixP5cIUUt4UvT+tEfUMpHJc8T m+gdLpQ9dn1OGlB9nV2v67Ju+Ca7jQJIzl2RaED1+f2M3K2tG9LLJjUUYkSaSg1R2NUq zJ1GDR2l7udAbRJC2B//yBHTZ2XJNBjKyjuvG5wq23/PbpnNGWY9H6yTxAJvXUs1r7Vk 2l2P1pA1IHUDLyljLWzI+e2hgVxz7cnyvdpXNYmSH5jvJM1AnQuqavZPnAO7grIAbCxD v64mIRB/5CC/xaXMON+8DGag1n8sA1EYOQdlIn+UnLPLrGNtld3V2vl049nb6bnLJMLW ZsFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aZ/DFvte+Czwdk8NlpaMhb6wXYjEnns1tsu3aQaR4r0=; b=X3MZaJiQUJqk+ug6tJrbCQGe2xPp6nP7oQskNSoxiNXMZVGdXuCRIs1r5yGLHWbU4A 9gRaTWhywRf9nzLdzvn2/qzCrST6Egcexiv+86ugELy9tQrcYXyd9k91blmbEbq1Fhqf jOsH6xBAG/neeaRk5iRj2dutbeAivuapeH7pl53cEbcBxtc/GfGzEBFMM+MwmIVmMmdd PiHXLiUcFeOcd5GJtmWdd7RljfuJS9PpSSALOSo4RPcF5/wFdh8Rgk5c4hz6JlI7mqpD 6Ua+SHmnUvcWTpPJSPxZGBg6r8SBrbHEU5/KzP0r7/nim5hFrgMN5OeD0h4R7EYhPHgm fBEw== X-Gm-Message-State: ACrzQf129IeCrQfBx6hYZJNdnXlegAeO0qtu3thioImzt93vMC5q1h0Z Yc451vEonYLxNZJNPDQdz+W67dpOB4C2oJhpKwg= X-Google-Smtp-Source: AMsMyM7DVjSFkfeD6T1rka4I4MH7fkwuP5IkM4yVMchdLTYUDX14wtz5YknebB5IQReGkxZ4UKWVMZAx+rqvEDYz+xw= X-Received: by 2002:a05:6870:d79a:b0:136:50d7:faa9 with SMTP id bd26-20020a056870d79a00b0013650d7faa9mr9137462oab.92.1666970775931; Fri, 28 Oct 2022 08:26:15 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Oct 2022 08:26:15 -0700 In-Reply-To: X-Hashcash: 1:20:221028:gusbrs.2016@gmail.com::7a8aRiIPOrAYv/mh:1lDC 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246432 Archived-At: Gustavo Barros writes: > I've tried to isolate things from the Trash issue, and I could > reproduce the problem with the following steps. > > I grabbed two USB sticks, formatted both of them with EXT4 (I used > Mint's "USB Stick formatter" tool, I suppose it is pretty standard in > what it does), labeled each "orig" and "dest". Mounted both. > > In the terminal, I did: > > $ cd /path/to/orig > $ mkdir barbaz > $ cd barbaz > $ dd if=/dev/zero of=zero.file bs=1024 count=204800 > $ cd /path/to/dest > $ mkdir barbaz-foobar > > I started "emacs -Q", and issued: > > (rename-file "/path/to/orig/barbaz" "/path/to/dest/barbaz-foobar" t) > > And got "(file-already-exists "File exists" "/path/to/dest/barbaz-foobar")" I get the same result. But I think this is expected, as the `rename-file' docstring says: For NEWNAME to be recognized as a directory name, it should end in a slash. So this function seems to be working as documented.