[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken
From: |
Eli Zaretskii |
Subject: |
bug#70593: 30.0.50; Dired: buffers of renamed dirs are broken |
Date: |
Fri, 26 Apr 2024 17:55:52 +0300 |
> Date: Fri, 26 Apr 2024 13:59:16 +0200
> From: Michael Heerdegen via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> The problem is that we partially fail to update the affected buffers.
>
> The code wants to do this in `dired-rename-subdir-1':
>
> (if (equal dir default-directory)
> ;; if top level directory was renamed, lots of things have to be
> ;; updated:
>
> DIR is the old directory name. But the `equality' test fails simply
> because default-directory is "~/test/" but DIR has the tilde expanded.
So all we need to do is call expand-file-name on both of them? Or do
we need also to call file-truename?