Align files after dired revert (Bug#17219)

* lisp/dired.el (dired-revert): Add 'dired--align-all-files'
function call, to re-align files after reverting.
This commit is contained in:
Jakub Ječmínek 2024-12-22 21:53:53 +01:00 committed by Eli Zaretskii
parent 7809086b3b
commit cce6a57af7

View file

@ -2159,7 +2159,8 @@ ARG and NOCONFIRM, passed from `revert-buffer', are ignored."
(if (dired-goto-subdir dir)
(dired-hide-subdir 1))))
(unless modflag (restore-buffer-modified-p nil))
(hack-dir-local-variables-non-file-buffer))
(hack-dir-local-variables-non-file-buffer)
(dired--align-all-files))
;; outside of the let scope
;;; Might as well not override the user if the user changed this.
;;; (setq buffer-read-only t)