all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Goel <deego3@gmail.com>
To: emacs-devel@gnu.org, Dave Goel <deego3@gmail.com>
Subject: Re: Dired delete(d) the wrong file!
Date: Thu, 4 Jul 2024 19:35:31 -0400	[thread overview]
Message-ID: <CAOCW0DgvEPsv4HmNvV25P0xfi2PuPg7v_5D5greZUU6yThSYMw@mail.gmail.com> (raw)
In-Reply-To: <CAOCW0DjZkpQK=6QbwEgSaM0sPDziwdnk9T6HLm+=OipEiDud1g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

I should have reproduced it using -Q. Here are the exact instructions -

Here are the exact steps to reproduce it using -Q on 28.2 debian -

(0) touch the two files in tmp/
cd ~/tmp/
touch "07 nov 2395 zz.kk"
touch "zz.kk"

(1) Launch emacs -Q and eval this -
(progn
  (setq dired-ls-F-marks-symlinks t)
  (setq dired-listing-switches "-alF")
  (setq delete-by-moving-to-trash t)

  )

(2) Run dired ONLY after Eval'ing this

(3) Press d on the file labeled "07 aa 2395 zz.kk". Then press x.

(4) Dired will now show that the correct(!) file is deleted.

(5) Refresh the buffer by pressing "g" to see that actulaly, the wrong file
was deleted!





>

[-- Attachment #2: Type: text/html, Size: 1224 bytes --]

  reply	other threads:[~2024-07-04 23:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-04 22:36 Dired delete(d) the wrong file! Dave Goel
2024-07-04 23:35 ` Dave Goel [this message]
2024-07-05  1:40   ` Dave Goel
2024-07-05  8:01     ` Tassilo Horn
2024-07-05  1:24 ` Po Lu
2024-07-05  5:43   ` Eli Zaretskii
2024-07-05  5:50     ` Dave Goel
2024-07-05  7:33       ` Eli Zaretskii
2024-07-05  8:06         ` Dave Goel
2024-07-05  8:12           ` Dave Goel
2024-07-05  8:26             ` Dave Goel
2024-07-05  8:39               ` Dave Goel
2024-07-05 11:05                 ` Eli Zaretskii
2024-07-05 19:02                   ` Dave Goel
2024-07-05 11:00               ` Eli Zaretskii
2024-07-05  9:53         ` Stefan Kangas
2024-07-05 10:52           ` Eli Zaretskii
2024-07-05 23:28         ` Michael Heerdegen via Emacs development discussions.
2024-07-06  6:17           ` Eli Zaretskii
2024-07-05  5:50     ` Po Lu
2024-07-05  7:11       ` Michael Heerdegen via Emacs development discussions.

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=CAOCW0DgvEPsv4HmNvV25P0xfi2PuPg7v_5D5greZUU6yThSYMw@mail.gmail.com \
    --to=deego3@gmail.com \
    --cc=emacs-devel@gnu.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.