GNU bug report logs - #71264
30.0.50; Dired deletion moves point under auto-revert

Previous Next

Package: emacs;

Reported by: "Basil L. Contovounesios" <basil <at> contovou.net>

Date: Wed, 29 May 2024 21:49:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #38 received at 71264 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <basil <at> contovou.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: manuel <at> ledu-giraud.fr, 71264 <at> debbugs.gnu.org
Subject: Re: bug#71264: 30.0.50; Dired deletion moves point under auto-revert
Date: Sun, 02 Jun 2024 19:02:23 +0200
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




This bug report was last modified 332 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.