--- Begin Message ---
Subject: |
28.1; Buffers are not updated when a directory is renamed in dired |
Date: |
Sun, 10 Apr 2022 17:25:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
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
khaelin@gmail.com
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#54838: 28.1; Buffers are not updated when a directory is renamed in dired |
Date: |
Mon, 11 Apr 2022 14:33:18 +0300 |
> From: Nicolas Martyanoff <khaelin@gmail.com>
> Cc: Nicolas Martyanoff <khaelin@gmail.com>, Tassilo Horn <tsdh@gnu.org>,
> 54838@debbugs.gnu.org
> 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.
--- End Message ---