]> git.eshelyaron.com Git - emacs.git/commitdiff
Align files after dired revert (Bug#17219)
authorJakub Ječmínek <kuba@kubajecminek.cz>
Sun, 22 Dec 2024 20:53:53 +0000 (21:53 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 20 Jan 2025 15:58:36 +0000 (16:58 +0100)
* lisp/dired.el (dired-revert): Add 'dired--align-all-files'
function call, to re-align files after reverting.

(cherry picked from commit cce6a57af7cff36936340a6a43be73ccfcadea5f)

lisp/dired.el

index 6fcf31c166a493970ef245e7ee2259ffb76e493c..c3cfa908942f5586faf6888bd4adc0a9befae4c9 100644 (file)
@@ -2152,7 +2152,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)