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 19:35:31 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c34ca0061c746730" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13644"; 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 01:36:34 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 1sPW0A-0003QW-3W for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jul 2024 01:36:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPVzS-0004fd-6N; Thu, 04 Jul 2024 19:35:50 -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 1sPVzO-0004Z7-A5 for emacs-devel@gnu.org; Thu, 04 Jul 2024 19:35:46 -0400 Original-Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPVzM-0000XE-RI for emacs-devel@gnu.org; Thu, 04 Jul 2024 19:35:46 -0400 Original-Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-70b0bc1ef81so201768b3a.1 for ; Thu, 04 Jul 2024 16:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720136143; x=1720740943; 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=+GyqSaRoQGVhrTET62AM1MG7easIOxpZ5GSGWbjG27A=; b=bqIFNf9PRmWMOtD6VGtUfSqjk6HlbIj8k0lClXy6sw+2XN40DFUGAKWuoO1EVGuzMk P9Ew73N2EFN8KFg8UxoUoMqBk9Sr38mJqXwbBkFVXg+MDtnKABaMdhqiJfvdmmFKKSme BIhrxdzzSvbfjRtWZE1tIDCeitvGAK/4KOKIPr5HD/LQHnQ06wRQHud05pOZKm1GYe0w 6wsgb57zQKVsu4Xa+gcvC2r8SL8qVhMwefyTyAwM2CRa9d0+URE3G4L0/e2vs5nxxemr t5/E6vF8yHQ5yEY7smtZE/zY5ePbIi2404Kgnor3zV++0y+kTMGF+Kgb9R5q4Yong2oF OTHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720136143; x=1720740943; 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=+GyqSaRoQGVhrTET62AM1MG7easIOxpZ5GSGWbjG27A=; b=S7KKX2osMyXmP7JQosIWfesdaloqGFzcxLpNPRaTFoN0MigaP6EuG1IqzVnYr8auY2 sxIVD2i2vtbAHYcEHyaOtrwHgh8oxELJeM0vurATaYZx59c/t8OhYOtL3F0hTRSzE0NF 7jr4k42GaOgTPKG5Bb9ZTBeVqLgH3NXadUAJalPmo0tNgLL+D3XPbMkrVSbH9u1wvdMQ 96E531o/rkfhfOB9V038FCRlUMfWJCXiAi0M6ObYOhxFSq/Wn9g29V56wgpT0pfRwS2l kYlGBTIG0/JereMz92ssb+dOkt7QYvwJ3RRRSM3WVL/35+N8yS0eU9wOff7Sx1O4//r2 wSag== X-Gm-Message-State: AOJu0YwY6IbfAZnWkZFXumRSHX3WVxio/g9TWICLU1kCDYIHQX03Sd4a az/tpidFzz/fYdojkeqO7QEWVxUQsE/r6SW5/A5Ei49tyCLS7MxX9btL2xrWoqgLtFW44PBVl++ DrVVbW0TrbGl8gdh8nkvPVhwGvq7d/oS5 X-Google-Smtp-Source: AGHT+IF9MvaOQgBved86FJQU+bHt7/1WBViCnwYNSZOHmj5TgX8s3OKoUT87hJREHujPsoR+/hGFT5mjuQ7/Xyp2G5E= X-Received: by 2002:a05:6a20:8401:b0:1be:ccea:41ea with SMTP id adf61e73a8af0-1c0cc8baaf5mr2951834637.49.1720136142898; Thu, 04 Jul 2024 16:35:42 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::42a; envelope-from=deego3@gmail.com; helo=mail-pf1-x42a.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:321363 Archived-At: --000000000000c34ca0061c746730 Content-Type: text/plain; charset="UTF-8" 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! > --000000000000c34ca0061c746730 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I should h= ave reproduced it using -Q. Here are the exact instructions -

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

(0) t= ouch the two files in tmp/
cd ~/tmp/
touch "07 nov 2395 zz.kk&qu= ot;
touch "zz.kk"

(1) Launch emacs -Q and eval this - <= br>(progn
=C2=A0 (setq dired-ls-F-marks-symlinks t)
=C2=A0 (setq dire= d-listing-switches "-alF")
=C2=A0 (setq delete-by-moving-to-tr= ash t)

=C2=A0 )

(2) Run dired ONLY after Eval'ing this
(3) Press d on the file labeled "07 aa 2395 zz.kk". Then pre= ss x.

(4) Dired will now show that the correct(!) file is deleted. <= br>
(5) Refresh the buffer by pressing "g" to see that actulal= y, the wrong file was deleted!





--000000000000c34ca0061c746730--