From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dave Goel Newsgroups: gmane.emacs.devel Subject: Re: Dired delete(d) the wrong file! Date: Thu, 4 Jul 2024 21:40:09 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007ffbc3061c762511" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18732"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org, Dave Goel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 05 03:41:21 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sPXwu-0004ll-U3 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jul 2024 03:41:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPXw6-0000Cd-RJ; Thu, 04 Jul 2024 21:40:30 -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 1sPXw1-0000CK-U3 for emacs-devel@gnu.org; Thu, 04 Jul 2024 21:40:25 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPXvz-00026x-4b for emacs-devel@gnu.org; Thu, 04 Jul 2024 21:40:24 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-75cda3719efso653102a12.3 for ; Thu, 04 Jul 2024 18:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720143621; x=1720748421; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=tCjFklgmYDi8HXwXmMhXmKlt9Z+lXal4bxv0OOtssto=; b=fYtbDDC7sCgHh53A8uQvP3BF9dBUFGw4sdFUOINWJzAhVJEaCcemaVITuQjfnG4mC7 i8woujVIiw0fkVbjoKC7lmxm1D+sF1KyvcS+HIfAzBKo3677MWnDCdCrGcsf+oyvKzrV nTPp65PCQDSALQq89z0PQ3BNh8Hihhma3tjXUIAAengY9kV3cSiFQu6FsdbhM1HZOXMt M3sh/aOvSCPgpQoAbBjesS9WTax4JrAQ6IieddBvdF+NDwtG5GWSxqsu6PnianCGvrZ2 RV0RBh9EtBkSPQ0enxBKxFP/VM/n3di2Tf3cZ81Le7scpqwDRFx4F5y1DV9jeSYQh1rc ChpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720143621; x=1720748421; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tCjFklgmYDi8HXwXmMhXmKlt9Z+lXal4bxv0OOtssto=; b=voD1Maw9HZjxa4A8No9D46gvnX0bzApjiiTlHlhGa+srTr20YOlukTwZkKpx0XbhLV B3HeWtNp8AWc4EOSSnlUeJ3SpxaGbXVeL0I5cea8fbNn09c/NXF2eU5+BVvrnZcSEDEV zj9o+4LKGhNs5YhJ7HvFObDi0FkPVkHFBVi7i8PyDQMTjjdojgNFQ2QWzd5XR7oh2G7E GYhZUY0Hu3YmWEhjTI47xnKjZEv1gydp9NpCDTznDNX5uhLf3KFDyfshrX9fqgaplqs5 0ERQ+P3x/hArKND9+ura3UcMeR1PGTJ4QcMKECbTzHfy6Q6g82Gb0HIe9jDyAou8Ws5W rX5Q== X-Gm-Message-State: AOJu0YzlxEzzfDbf5htk6BTa+SKTZvznVLW5w+GQphfPtN3q1LDhEBNI FnC1Xo/yXBNvoU/u1AYD5bVl596fVdC9XA7iWTms/rLiTRjDfehvGETa1tzpDYggoSpDt5JIfjw yYUA4CVpOHxUM0+LbJI00mK5ZXKseQw== X-Google-Smtp-Source: AGHT+IF9LQoN7ziidt8qsSCeuaaRZFdWMwZuLpivTrAcVlMerHCzMWKvAHwh8CbdcVhdIDDgN6+dcDdvrO6VrTKJPxA= X-Received: by 2002:a05:6a20:daa0:b0:1be:e4dd:17a1 with SMTP id adf61e73a8af0-1c0cc736817mr3440325637.5.1720143621123; Thu, 04 Jul 2024 18:40:21 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=deego3@gmail.com; helo=mail-pg1-x533.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321365 Archived-At: --0000000000007ffbc3061c762511 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Can anyone test if using these exact instructions, the problem still exists in the bleeding edge? - On Thu, Jul 4, 2024 at 7:35=E2=80=AFPM Dave Goel wrote: > 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! > > > > > >> --0000000000007ffbc3061c762511 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can anyone test if using these exact instruc= tions, the problem still exists in the=C2=A0bleeding edge? -=C2=A0


On Thu, Jul 4, 2024 at 7:35=E2=80=AFPM Dave Goel <<= a href=3D"mailto:deego3@gmail.com">deego3@gmail.com> wrote:
I should have reproduced it using = -Q. Here are the exact instructions -

Here are the exact steps to r= eproduce it using -Q on 28.2 debian -

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

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

=C2=A0 )
(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 w= ill now show that the correct(!) file is deleted.

(5) Refresh the b= uffer by pressing "g" to see that actulaly, the wrong file was de= leted!





<= /div>
--0000000000007ffbc3061c762511--