Fix update of Dired display when it was called on a cons cell

* lisp/dired.el (dired-internal-do-deletions): Make sure that FN's
directory entry is updated on display.  (Bug#57565)
This commit is contained in:
Eli Zaretskii 2022-09-04 08:40:52 +03:00
parent 0ffde8a81f
commit 1d9e4900a3

View file

@ -3746,7 +3746,10 @@ non-empty directories is allowed."
(progress-reporter-update progress-reporter succ)
(dired-fun-in-all-buffers
(file-name-directory fn) (file-name-nondirectory fn)
#'dired-delete-entry fn))
#'dired-delete-entry fn)
;; For when FN's directory name is different
;; from the current buffer's dired-directory.
(dired-delete-entry fn))
(quit (throw '--delete-cancel (message "OK, canceled")))
(error ;; catch errors from failed deletions
(dired-log "%s: %s\n" (car err) (error-message-string err))