Fix #4877: dired not sorting directories first

On macOS and Linux, because ls-lisp hasn't been loaded yet.
This commit is contained in:
Henrik Lissner 2021-04-17 00:03:20 -04:00
parent 06089340f8
commit dec15832de

View file

@ -43,7 +43,8 @@ uncertain that they are supported (e.g. over TRAMP or on Windows).
Fixes #1703: dired over TRAMP displays a blank screen.
Fixes #3939: unsortable dired entries on Windows."
(when (or (file-remote-p default-directory)
(not (bound-and-true-p ls-lisp-use-insert-directory-program)))
(and (boundp 'ls-lisp-use-insert-directory-program)
(not ls-lisp-use-insert-directory-program)))
(setq-local dired-actual-switches (car args))))))
;; Don't complain about this command being disabled when we use it