Fix #4877: dired not sorting directories first
On macOS and Linux, because ls-lisp hasn't been loaded yet.
This commit is contained in:
parent
06089340f8
commit
dec15832de
1 changed files with 2 additions and 1 deletions
|
@ -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 #1703: dired over TRAMP displays a blank screen.
|
||||||
Fixes #3939: unsortable dired entries on Windows."
|
Fixes #3939: unsortable dired entries on Windows."
|
||||||
(when (or (file-remote-p default-directory)
|
(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))))))
|
(setq-local dired-actual-switches (car args))))))
|
||||||
|
|
||||||
;; Don't complain about this command being disabled when we use it
|
;; Don't complain about this command being disabled when we use it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue