From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71264: 30.0.50; Dired deletion moves point under auto-revert Date: Tue, 04 Jun 2024 17:26:50 +0300 Message-ID: <867cf4lr6d.fsf@gnu.org> References: <87zfs8waqx.fsf@epfl.ch> <87mso61g92.fsf@ledu-giraud.fr> <87ikyu1fo5.fsf@ledu-giraud.fr> <87sexygp0t.fsf@epfl.ch> <874jactwbz.fsf@ledu-giraud.fr> <86h6eco86x.fsf@gnu.org> <87h6eb75lg.fsf@epfl.ch> <86ed9fmkqm.fsf@gnu.org> <87sexv5lcw.fsf@epfl.ch> <877cf5x3gl.fsf@ledu-giraud.fr> <868qzlluj5.fsf@gnu.org> <87wmn5vlsg.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: basil@contovou.net, 71264@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 04 16:41:00 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 1sEVLO-0002nu-6a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jun 2024 16:40:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEVLG-0002lD-J8; Tue, 04 Jun 2024 10:40: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 1sEVLF-0002kM-3M for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 10:40:49 -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 1sEVLE-0007ze-Ro for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 10:40:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEVLS-00009y-8T for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2024 10:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jun 2024 14:41:02 +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.1717512018475 (code B ref 71264); Tue, 04 Jun 2024 14:41:02 +0000 Original-Received: (at 71264) by debbugs.gnu.org; 4 Jun 2024 14:40:18 +0000 Original-Received: from localhost ([127.0.0.1]:56718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEVKj-00007U-CD for submit@debbugs.gnu.org; Tue, 04 Jun 2024 10:40:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEV89-0007tw-A4 for 71264@debbugs.gnu.org; Tue, 04 Jun 2024 10:27:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEV7o-00013I-Fs; Tue, 04 Jun 2024 10:26:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=4NTEK2NxijWZgtQLgDXBazUdhLqPkLvCiGGZNSAd+Zg=; b=JFmlj42Wl8M19D4rChUL qcOU2hJ8Uu8ngLUkxPjRoDptWTNMRo2NWW8TH4XJYJrmw8UtkdzG0L0UapC9DZUL3c0RpS3FaWj5p CgSZgXYFo5cnpedly4IDHWisNVS0BlN93+Ex5x+opCNQsVZ9YEEqVN3GhSQ6Gig1Nfbs2tuujmNMb TDzayrngnRuNKsugcVz6hwILx6zlz/XdmLYcHRdMdMdNkneeSgIapQlY2gGs/SlI2qUvjhEsb6hev nSy42TvBrTv8+GR86awrz9b8xhOmci4v2C9Fd+QV2aS+vYGUJdBGqWasrbs0WHYhwZXWucwqllSXY Q3sy1XCo8b6Eyw==; In-Reply-To: <87wmn5vlsg.fsf@ledu-giraud.fr> (message from Manuel Giraud on Mon, 03 Jun 2024 22:00:47 +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:286545 Archived-At: > From: Manuel Giraud > Cc: basil@contovou.net, 71264@debbugs.gnu.org > Date: Mon, 03 Jun 2024 22:00:47 +0200 > > Eli Zaretskii writes: > > [...] > > >> This I'm not sure and I have to check. But it seems that dired keeps > >> the information of « what is the current file name » and go there after > >> having reverted the content. If it is not found, the point stays at > >> BOB. > > > > So how does Dired DTRT when you simply delete a file at point? Why > > doesn't it go to BOB in that case? > > Because the dired buffer is not reverted (it does not re-read the ls > output in this case). If I'm not mistaken, this takes place in > `dired-remove-entry' which removes the buffer line of the file that was > just deleted. AFAIR, when the Dired buffer is reverted, Dired attempts to preserve important information, like markers etc. So I think the problem could be that the revert happens before Dired had time to record that information, in which case rearranging some code should be a way forward.