emacs-devel
[Top][All Lists]
Advanced

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

Re: Human-readable file sorting


From: John Wiegley
Subject: Re: Human-readable file sorting
Date: Fri, 19 Feb 2016 18:33:26 -0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin)

>>>>> Lars Ingebrigtsen <address@hidden> writes:

> The practical way to implement this is to provide a `file-string-lessp'
> function that can be configured to sort the way the user prefers, defaulting
> to human readable sorting, and then we adjust `directory-files' and other
> file-ey commands to call that instead of `string-lessp'.

If directory-files were made extensible, so a sorting method could be
provided... that sounds like a nice extension to me. So, having a
customization variable defaulting to `string-lessp', with an option to switch
to `string-human-lessp'.

Whether the default should human-lessp is another matter, and something I'd
instinctively want to defer until feedback. But having the extensibility
does sound nice.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



reply via email to

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