Subject: bug#54838: closed (Re: bug#54838: 28.1; Buffers are not updated when a directory is renamed in dired)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 11 Apr 2022 11:34:01 +0000

Your bug report

#54838: 28.1; Buffers are not updated when a directory is renamed in dired

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
54838: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=54838
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#54838: 28.1; Buffers are not updated when a directory is renamed in dired
From: Eli Zaretskii <[email-masked]>
To: Nicolas Martyanoff <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Mon, 11 Apr 2022 14:33:18 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Nicolas Martyanoff <[email-masked]>
> Cc: Nicolas Martyanoff <[email-masked]>,  Tassilo Horn <[email-masked]>,
>   [email-masked]
> Date: Mon, 11 Apr 2022 09:59:03 +0200
> 
> With your patch applied on HEAD, directory renaming seems to be working
> correctly (tested with direct children and with nested directories).
> 
> Thank you so much for such a quick patch!

Thanks for testing.  I've now installed the changes on the emacs-28
branch, and they will appear in Emacs 28.2.  I'm therefore closing
this bug.

Subject: 28.1; Buffers are not updated when a directory is renamed in dired
From: Nicolas Martyanoff <[email-masked]>
To: [email-masked]
Date: Sun, 10 Apr 2022 17:25:40 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Following an update from 27.2 to 28.1, when a directory is renamed in
dired, buffers visiting files located in this directory are not updated
to visit the file at its new location.

To reproduce the problem in emacs -Q:

- C-x C-f /tmp/dir1/file

- C-x C-s
  Answer 'y' to the prompt to create the directory. At this point the
  buffer 'file' visits /tmp/dir1/file, and the file exists on the disk.

- Run dired in /tmp.

- Rename /tmp/dir1 into /tmp/dir2, e.g. using 'R'.

- Switch to the 'file' buffer. It still visits /tmp/dir1/file even
  though the file is now located in /tmp/dir2.

-- 
Nicolas Martyanoff
http://snowsyn.net
[email-masked]