Function: dired--need-align-p
dired--need-align-p is a byte-compiled function defined in
dired.el.gz.
Signature
(dired--need-align-p)
Documentation
Return non-nil if some file names are misaligned.
The return value is the target column for the file names.
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired--need-align-p ()
"Return non-nil if some file names are misaligned.
The return value is the target column for the file names."
(save-excursion
(goto-char (point-min))
(dired-goto-next-file)
;; Use point difference instead of `current-column', because
;; the former works when `dired-hide-details-mode' is enabled.
(let* ((first (- (point) (line-beginning-position)))
(target first))
(while (and (not (eobp))
(progn
(forward-line)
(dired-move-to-filename)))
(when-let* ((distance (- (point) (line-beginning-position)))
(higher (> distance target)))
(setq target distance)))
(and (/= first target) target))))