Subject: bug#71264: 30.0.50; Dired deletion moves point under auto-revert

From: Manuel Giraud <[email-masked]>
Date: Fri, 31 May 2024 11:42:02 +0200

Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <[email-masked]> writes:

> "Basil L. Contovounesios" <[email-masked]> writes:
>
>> 0. emacs -Q
>> 1. M-: (add-hook 'dired-mode-hook #'auto-revert-mode) RET
>> 2. M-: (require 'dired-x) RET
>> 3. C-x d /tmp RET
>> 4. C-x C-f foo RET C-x C-s C-x C-j
>> 5. d x yes RET y
>>
>> Point is now at BOB instead of the line from which the file was deleted.
>> Both steps 1 and 2 are needed to reproduce.
>> Emacs 24.5 does not reproduce; 25.3 and 26.3 behave like 30.
>
> Hi Basil,
>
> I confirm the behaviour you observe on master.  I'm trying to track this
> down and it seems to come from the dired clean-up after a deletion.
>
> Customizing `dired-clean-up-buffers-too' to nil, fixes this issue for
> me.  Do you see the same?

BTW, customizing `dired-clean-confirm-killing-deleted-buffers' to nil
also solve this issue.
-- 
Manuel Giraud