From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#71264: 30.0.50; Dired deletion moves point under auto-revert Date: Sun, 02 Jun 2024 19:02:23 +0200 Message-ID: <87sexv5lcw.fsf@epfl.ch> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22539"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: manuel@ledu-giraud.fr, 71264@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 03 06:49:32 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 1sDzdU-0005mK-DY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 06:49:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDyJV-0003nT-CJ; Sun, 02 Jun 2024 23:24:49 -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 1sDyJT-0003iC-Qy for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 23:24:47 -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 1sDobZ-0006rf-Q8 for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 13:02:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDobm-00050q-4F for bug-gnu-emacs@gnu.org; Sun, 02 Jun 2024 13:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Jun 2024 17:03: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.171734777019249 (code B ref 71264); Sun, 02 Jun 2024 17:03:02 +0000 Original-Received: (at 71264) by debbugs.gnu.org; 2 Jun 2024 17:02:50 +0000 Original-Received: from localhost ([127.0.0.1]:60214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDoba-00050O-Bk for submit@debbugs.gnu.org; Sun, 02 Jun 2024 13:02:50 -0400 Original-Received: from mail-lf1-f42.google.com ([209.85.167.42]:39085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDobU-000508-RZ for 71264@debbugs.gnu.org; Sun, 02 Jun 2024 13:02:49 -0400 Original-Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-52a559e4429so521468e87.0 for <71264@debbugs.gnu.org>; Sun, 02 Jun 2024 10:02:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717347746; x=1717952546; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=a298puSoPxs2J16D8+ZdVFd/hDNrNYBi+CqvYbQXVqI=; b=EWlMr8x3pZMIVKhEP6FgyJEw4dLugvKQ/LnFbIu/0H45vZ0MxhcfgJxpQqlbtNCcy0 pOXXSVpBEEglZojmPDL51V7aB8hSnlpE7C4dA4497WAG0WZwuMQm0SqNa7Kikvzl2IzL YoiCT5fYlTXrN+iMZIbUJLoNzqgwnATSzLH9Leo8MYdr78CK+7N9kYR4p3a0fZgaLXoB IqHtcP3Wxzwrzz24i3gBuqQrvIkuzuf2q1+2yqDn0jx61c4k4MWrwP5C+K+rraGx8XDu gDulfsJaLfWWWuVi2VdaZsY/o3FTB5LZHry/b6LCANYNCkOzTwz+hkeT1uK/z/K3KjNV 8Vaw== X-Forwarded-Encrypted: i=1; AJvYcCW8uRbzsHQ4nTRn1WoRMeZVPXB448mQGgN/EWQie0371cUcVjPhVot5uycsk9KQGbpHflfPbXATkj24IroD1xHhg2FR0jk= X-Gm-Message-State: AOJu0YzxKvNYo8Z4q6zjfQUujqXhi/T4c3I424lBV/Z+lpANXupKElQf mYW7/+Z/WokUP0Of5TJnLtx+83sqlO777yWH8J0XlrWGyfrD0flJ X-Google-Smtp-Source: AGHT+IHjcVtyo7qbW728GJ83ik1h6G9oz519KOvWkBMbmX+ixa7aDgwa7s9kIMUeHcEuzq8XAdwUMA== X-Received: by 2002:a2e:9155:0:b0:2e9:8ac5:c0dd with SMTP id 38308e7fff4ca-2ea9515809emr36822841fa.2.1717347745761; Sun, 02 Jun 2024 10:02:25 -0700 (PDT) Original-Received: from localhost ([2001:620:618:5c0:2:80b3:0:5c]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57a31bb841fsm3988119a12.34.2024.06.02.10.02.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 10:02:25 -0700 (PDT) In-Reply-To: <86ed9fmkqm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Jun 2024 18:23:45 +0300") 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:286409 Archived-At: Eli Zaretskii [2024-06-02 18:23 +0300] wrote: > 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"? I assumed it was the undesirable motion. > That y-or-n-p doesn't block file notifications is AFAIU by design, and > preventing that could cause much more serious problems. Agreed. > What I don't understand is two things: > > . why the fact that "foo"s buffer was reverted affects Dired, [...] > . why the effect is to move point to BOB? I suspect answering these is tantamount to fixing the bug. > [...] what is expected from Dired when a file and its buffer are deleted? I'd be happy with the same behaviour as when auto-revert-mode is disabled: point remains on the same line; either on the next file in the listing, or at EOB if there is no next file. -- Basil