From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71264: 30.0.50; Dired deletion moves point under auto-revert Date: Sat, 01 Jun 2024 19:19:12 +0200 Message-ID: <874jactwbz.fsf@ledu-giraud.fr> References: <87zfs8waqx.fsf@epfl.ch> <87mso61g92.fsf@ledu-giraud.fr> <87ikyu1fo5.fsf@ledu-giraud.fr> <87sexygp0t.fsf@epfl.ch> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32019"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71264@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 01 19:20:14 2024 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 1sDSOr-000881-D6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jun 2024 19:20:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDSOW-00025Z-Bg; Sat, 01 Jun 2024 13:19:52 -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 1sDSOU-000256-E0 for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 13:19:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDSOU-0007Ry-61 for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 13:19:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDSOf-0003Kk-Td for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 13:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Jun 2024 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71264 X-GNU-PR-Package: emacs Original-Received: via spool by 71264-submit@debbugs.gnu.org id=B71264.171726237212766 (code B ref 71264); Sat, 01 Jun 2024 17:20:01 +0000 Original-Received: (at 71264) by debbugs.gnu.org; 1 Jun 2024 17:19:32 +0000 Original-Received: from localhost ([127.0.0.1]:57329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDSOB-0003Jq-K8 for submit@debbugs.gnu.org; Sat, 01 Jun 2024 13:19:31 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:14401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDSO8-0003Jg-Rf for 71264@debbugs.gnu.org; Sat, 01 Jun 2024 13:19:30 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=YPvBOpdQ 15uTAk6PW5Bu7mfrnrml+D7giGQYCd7PT2Y=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=WOIyko/TgAWvZIEX/Dr/4WThfkS6di K2txT1bEBzpsmrrRdNfkHseg5RvaR8Y4JS7oNA95oatoFMHVC0qngkDQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=YPvBOpdQ15uTAk6P W5Bu7mfrnrml+D7giGQYCd7PT2Y=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=yenvn1t4v7LSB4aHA5Ce0z2EC4HHwfbzjx3Nwl SeCURMWebxjlbCEe+jPNyaP99RjPdcIZSM5WBDWjwfVxEytsDsnjk2E130hd63UVxEh7J1 8UVGpAQplE/QIvFtUNdvk7h2wDRtSwJivGi1oeLTdBQpWz/EMXq88luXGDiJOwxCgOh/cK lV9+gxZVgkbgkrZ+Ytyr4H6iNpH5FtkkJOSKUNaJ8HitB+Y8MifK0QFRnUmHTeQWXCfWWg GuKUBhFtzjxwDxIZRUgYXzVbFcWJAsy5f0FB0j8Rv1JmGc2mfihxdc5FGkGhdw6R+2jAMJ S/oub2TJSPfaPnAgCkQxIUig== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 864e7a83 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 1 Jun 2024 19:19:13 +0200 (CEST) In-Reply-To: <87sexygp0t.fsf@epfl.ch> (Basil L. Contovounesios's message of "Fri, 31 May 2024 14:10:58 +0200") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286338 Archived-At: --=-=-= Content-Type: text/plain Hi Basil, I think I'm onto something regarding this bug. We can observe the same misbehavior with the following patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=my.diff diff --git a/lisp/dired.el b/lisp/dired.el index f2a75df6ef1..325c61627c2 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -4100,9 +4100,7 @@ dired-clean-up-after-deletion (let ((buf (get-file-buffer fn))) (and buf (or (and dired-clean-confirm-killing-deleted-buffers - (funcall #'y-or-n-p - (format "Kill buffer of %s, too? " - (file-name-nondirectory fn)))) + (sit-for 0.3)) (not dired-clean-confirm-killing-deleted-buffers)) (kill-buffer buf))) (let ((buf-list (dired-buffers-for-dir-or-subdir --=-=-= Content-Type: text/plain It seems to me that the 'y-or-n-p' call gives the opportunity of a time window for the dired buffer to be reverted. But then, when this revert happen the file "foo" has already disappeared so it cannot be found and the point ends up at the BOB. I don't know how to prevent this yet. -- Manuel Giraud --=-=-=--