From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory Date: Fri, 23 Jul 2021 18:08:35 +0100 Message-ID: References: <87czr9j9ns.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29240"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 27.2 Cc: 49711@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 23 19:17:37 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 1m6yno-0007VW-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jul 2021 19:17:36 +0200 Original-Received: from localhost ([::1]:53006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6ynn-00067k-DZ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jul 2021 13:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6yjO-00034r-TP for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 13:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6yjN-0001qT-Qm for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 13:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6yjN-0000bZ-Iq for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 13:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jul 2021 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49711 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 49711-submit@debbugs.gnu.org id=B49711.16270603242261 (code B ref 49711); Fri, 23 Jul 2021 17:13:01 +0000 Original-Received: (at 49711) by debbugs.gnu.org; 23 Jul 2021 17:12:04 +0000 Original-Received: from localhost ([127.0.0.1]:44495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6yiS-0000aP-Kp for submit@debbugs.gnu.org; Fri, 23 Jul 2021 13:12:04 -0400 Original-Received: from mail-wr1-f52.google.com ([209.85.221.52]:40459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6yiQ-0000Zu-Q6 for 49711@debbugs.gnu.org; Fri, 23 Jul 2021 13:12:03 -0400 Original-Received: by mail-wr1-f52.google.com with SMTP id z8so3103868wru.7 for <49711@debbugs.gnu.org>; Fri, 23 Jul 2021 10:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:date:message-id :in-reply-to:mime-version; bh=sd8xmrVXoCqDepR3KWXbgkrrRTJkQE8wIKCApTxbXmo=; b=h0U0yO/smrnNQbQ7+w1+Ok0iieMMb2hvWH5PrCNX+rbUvpSvnD0UpiE+8C7NjcMw44 vzwfvN9EQTk+iRONnLUPyn72KAjH9D1gF3HWGWFfdpxO3Y7fh5+RvF+LuAlaxZiIktUs uHp2BfwNm7LCoOwiuqL1bpX56CsKadH+nocX7NMB81F+LeQsVhSgmnyEBvUdpjyH+jAg Jn624bccxpaOlMEW01SKgVbq/cNBsb/0uOKpFVErFgHZXxQKnJLYoWdT/Q+FcMi6A2iQ TXidXfJ3huy2PmnLqAl4kNhoagzn020vD45K12POFMP47RI/RG9gmte3a2LLIzVip3CI jllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :message-id:in-reply-to:mime-version; bh=sd8xmrVXoCqDepR3KWXbgkrrRTJkQE8wIKCApTxbXmo=; b=bwWJV8GY8CMRvQrScVJr9HpHrkMzLZHMRNgX8Y7DTemFgnne9GbocTA7a4iXOt+CsY Uzme8tgf6SCOlctVuUKoVqQF7dBGnj9AUxbD3vo00yO6ea1AW+NgEldd+CYcAlEqiqI4 YCRt/B3wiKyJfxaXzW56xDyBl86ws1IOen6xuwKOOIOtoGGfi687uCWuW9UOVt91+JFi lzEb1CvUKT/Nc3hchrnoMB28Sjb9Lypswe84DM8cvn6xPcrgBm1qZSsFFRDS/9f0aXbO 39oVPtyIt1U0g9t6WdSRkYovUvi6ZRZRBNlmyMc6xkVptJa/cQvcZ2eM2jif0KG51zXv 7JtQ== X-Gm-Message-State: AOAM532PRHY1nuHNwirRcrzFFopNHoCdMJVV5/oUBwfonxIMw1UY7dy1 ngunYtYUh6R0wX1+anPC8KYQuHyM7RE= X-Google-Smtp-Source: ABdhPJyAB0nUJImSB1POFcXEreXGRc4Oz1/kZAVAJ+HANYgWDPoLl1ghrd4Qm+K9pMLDdjAZnNorQQ== X-Received: by 2002:a5d:54d2:: with SMTP id x18mr2923797wrv.342.1627060316678; Fri, 23 Jul 2021 10:11:56 -0700 (PDT) Original-Received: from lxstaff02.gmail.com ([137.195.26.27]) by smtp.gmail.com with ESMTPSA id r67sm5872274wma.6.2021.07.23.10.11.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jul 2021 10:11:56 -0700 (PDT) In-reply-to: <87czr9j9ns.fsf@gnus.org> 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:210600 Archived-At: On 23/07/2021, Lars Ingebrigtsen wrote: > Al Haji-Ali writes: > >> In dired, if I delete a directory called `~` (not related to home >> directory, I created this directory by mistake) and delete it, dired >> deletes the home directory instead. > > I'm unable to reproduce this in Emacs 27.2 or 28. Here's my test case: > > touch '/tmp/~' > emacs -Q /tmp/ > > Then hit `D yes RET' on the ~ file. > > That deletes /tmp/~ for me, and not the home directory. > > Do you have a step-by-step recipe, starting from "emacs -Q" for how to > reproduce the problem you're seeing? Apologies, I should have specified that I have `delete-by-moving-to-trash` set to `t`. Otherwise, the exact steps you mentioned reproduce this for me on 27.2 If I keep `delete-by-moving-to-trash` as the default nil, I don't see this behaviour. -- Al