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: Sun, 02 Jun 2024 18:23:45 +0300 Message-ID: <86ed9fmkqm.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manuel@ledu-giraud.fr, 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 Mon Jun 03 06:36:41 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 1sDzR2-0009i3-8O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 06:36:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDyC8-0007be-Iq; Sun, 02 Jun 2024 23:17:12 -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 1sDyC7-0007Zp-8o for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 23:17:11 -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 1sDn4k-0007yp-8B for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 11:24:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDn4w-0008EQ-GX for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 11:25: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: Sun, 02 Jun 2024 15:25: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.171734185231576 (code B ref 71264); Sun, 02 Jun 2024 15:25:02 +0000 Original-Received: (at 71264) by debbugs.gnu.org; 2 Jun 2024 15:24:12 +0000 Original-Received: from localhost ([127.0.0.1]:60160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDn47-0008DD-QS for submit@debbugs.gnu.org; Sun, 02 Jun 2024 11:24:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDn43-0008Cu-HL for 71264@debbugs.gnu.org; Sun, 02 Jun 2024 11:24:09 -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 1sDn3j-0007iR-Qn; Sun, 02 Jun 2024 11:23:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9ZGpKvdTrnyZJfQkPRdirnRiC4VpZUWvnLvg3skhzkQ=; b=f4cKRhtIFD10 ifycFBdjtQL4Erw0s6uQ6FH06PD7QTjEek/0RrplTXRo75UUwfXiHChf2wcJUORGO79RE1vhgKuxQ Ej4/J0O0adb9oNTtaQNSRxlNOcyuadp+HRp9AYfj1dCAXK4n1ZtlG9VSTuJyeM8TuSfHbp9M6DOt0 3CkxtSLz41nta5Lozu9aBs7WovA7k0KPtdqlmEI4ECRwjkjPxCYIPA+90Zr8Pe3tdQQSz145kCkyJ XPOM2wHfZvIjShfTJCatDsekldHSfZbuqHrAmh7E+RQ6IvAh+ALDWqrI2Oa9lyD4Se9iqHMooWtLk kOGa0GY2y3IaPWDshKb+TQ==; In-Reply-To: <87h6eb75lg.fsf@epfl.ch> (basil@contovou.net) 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:286402 Archived-At: > From: "Basil L. Contovounesios" > Cc: Manuel Giraud , 71264@debbugs.gnu.org > Date: Sun, 02 Jun 2024 16:59:55 +0200 > > Eli Zaretskii [2024-06-01 20:59 +0300] wrote: > > >> Cc: 71264@debbugs.gnu.org > >> Date: Sat, 01 Jun 2024 19:19:12 +0200 > >> From: Manuel Giraud via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> I don't know how to prevent this yet. > > > > I'm not sure I understand why we need to prevent that. > > I encounter this most often in my homedir: it contains ~140 subdirs and > files, meaning BOB and EOB are separated by ~2 pagefuls. Files are > sorted by name in groups: subdirs first, then dotfiles, then the rest. > Each time some program, such as a screenshot application, stores a file > in my homedir, it appears near EOB. And each time I delete such a file, > I lose my current position and have to scroll down 2 pagefuls again. > > I understand that auto-revert-mode can come with limitations, but I > don't think this UX is right, and I imagine Dired can do better. Maybe I misunderstood what was meant by "this" in "how to prevent this". The preceding text was: > 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. So which part of this did Manuel want "to prevent"? That y-or-n-p doesn't block file notifications is AFAIU by design, and preventing that could cause much more serious problems. What I don't understand is two things: . why the fact that "foo"s buffer was reverted affects Dired, and what is expected from Dired when a file and its buffer are deleted? . why the effect is to move point to BOB?