bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak


From: Juri Linkov
Subject: bug#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak
Date: Sun, 12 Dec 2021 21:28:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> Maybe then like there is a user option `ls-lisp-dirs-first'
>> for ls-lisp.el, a similar option should be added to dired as well,
>> so users won't need to manually add "--group-directories-first"
>> to `dired-listing-switches'.  Do you agree?
>
> After I posted my comment to Drew, I realized later, that
> '--group-directories-first' does not exist in all 'ls' implementations. Bsd ls
> does not seem to have it, correct me if I am wrong, so I am not sure it can 
> be a
> default for Emacs.

Maybe such 'ls' implementations could be detected using something like
'grep-probe'?

> Unless Emacs defaults to ls-lisp.el on all platforms but gnu/Linux?

Dired defaults to ls-lisp.el on ms-dos and windows-nt, and
'ls-lisp-dirs-first' default to t when 'ls-lisp-emulation' is 'MS-Windows'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]