From: Al Haji-Ali <abdo.haji.ali@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 49711@debbugs.gnu.org
Subject: bug#49711: 27.2; Deleting a directory called ~ deletes home directory
Date: Fri, 23 Jul 2021 18:08:35 +0100 [thread overview]
Message-ID: <x1ov9510xgc.fsf@gmail.com> (raw)
In-Reply-To: <87czr9j9ns.fsf@gnus.org>
On 23/07/2021, Lars Ingebrigtsen wrote:
> Al Haji-Ali <abdo.haji.ali@gmail.com> 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
next prev parent reply other threads:[~2021-07-23 17:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 15:03 bug#49711: 27.2; Deleting a directory called ~ deletes home directory Al Haji-Ali
2021-07-23 16:07 ` Lars Ingebrigtsen
2021-07-23 17:08 ` Al Haji-Ali [this message]
2021-07-24 11:37 ` Lars Ingebrigtsen
2021-07-24 12:17 ` Eli Zaretskii
2021-07-24 12:27 ` Lars Ingebrigtsen
2021-07-24 12:40 ` Eli Zaretskii
2021-07-24 14:18 ` Lars Ingebrigtsen
[not found] ` <b5a28a7b-8705-41b1-8b48-4b042569b387@Spark>
2021-07-24 15:24 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x1ov9510xgc.fsf@gmail.com \
--to=abdo.haji.ali@gmail.com \
--cc=49711@debbugs.gnu.org \
--cc=larsi@gnus.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.