[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible regression in dired when renaming directories
From: |
Nicolas Martyanoff |
Subject: |
Re: Possible regression in dired when renaming directories |
Date: |
Sun, 10 Apr 2022 16:49:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> I cannot reproduce this. I tried R in Dired, and Emacs 28.1 works the
> same as 27.2 here.
>
> Can you provide a complete recipe starting from "emacs -Q" to
> reproduce the problem?
Running 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.
- Additional test: running C-x C-s in the 'file' buffer will ask again
to create /tmp/dir1, which is normal since the directory has been
renamed to /tmp/dir2.
Regards,
--
Nicolas Martyanoff
http://snowsyn.net
khaelin@gmail.com