emacs-devel
[Top][All Lists]
Advanced

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

Re: Human-readable file sorting


From: Michael Heerdegen
Subject: Re: Human-readable file sorting
Date: Sat, 20 Feb 2016 18:30:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

> (defun file-string-lessp (s1 s2)
>   (pcase file-sorting-method
>     (,unicode
>      (string-lessp s1 s2))
>     (,human
>      (human-string-lessp s1 s2)))
>     ..)
>
> (Hey!  Did I get the pcase syntax right?  Bonus points!)

These patterns are invalid.  I think the patterns you want are 'unicode
and 'human.


Michael.




reply via email to

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