emacs-devel
[Top][All Lists]
Advanced

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

Re: Human-readable file sorting


From: Lars Ingebrigtsen
Subject: Re: Human-readable file sorting
Date: Sun, 21 Feb 2016 13:14:34 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> It's okay to sort file names using a comparison function that can be
> used with strings that are not file names.  But if you call it
> "file-SOMETHING", then it will look weird if someone uses it to sort
> strings that are not file names.

That's true.  But we were talking just about sorting file names, and
allowing the users to control how file name should be sorted.  And
having that customisation apply to non-file functions, too, would be
rather odd.

But if we're instead talking about allowing the user to customise how
any and all strings should be sorted, then a function with "file" in its
name would be inappropriate.

But are we?  :-)  I don't know...  perhaps we are?  Perhaps what we want
to offer the users is "every time Emacs sorts strings, then it should be
done *this* way?"  I have a feeling that there's plenty of opportunity
for breakage.  Which there is for file sorting, too, but perhaps even
more so...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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