]> git.eshelyaron.com Git - emacs.git/commit
Fix default-directory of buffers visiting files in renamed directories
authorEli Zaretskii <eliz@gnu.org>
Mon, 11 Apr 2022 11:31:04 +0000 (14:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 11 Apr 2022 11:31:04 +0000 (14:31 +0300)
commite71c7a7c600bae3337de95d193dd106e9bfa2b4c
treed5127c3d178f25c594d383a1220f0dd667706038
parentcccaa9c31de363bba5920031ecdb9db4ad3207ee
Fix default-directory of buffers visiting files in renamed directories

* lisp/dired-aux.el (dired-rename-file): Take note of whether FILE
is a directory before it is renamed, which makes it impossible to
determine if it was a directory.
(dired-rename-subdir, dired-rename-subdir-1): Revert to using
dired-in-this-tree-p instead of file-in-directory-p, for the
benefit of files that were renamed/removed, because
file-in-directory-p returns nil in those cases.  (Bug#54838)
lisp/dired-aux.el