From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Human-readable file sorting Date: Sun, 21 Feb 2016 13:14:34 +1100 Message-ID: <87d1rqkdx1.fsf@gnus.org> References: <87povs41xg.fsf@gnus.org> <87bn7c3yms.fsf@gnus.org> <83si0npxtn.fsf@gnu.org> <87si0nlirx.fsf@gnus.org> <8360xjpq91.fsf@gnu.org> <87oabbli5g.fsf@gnus.org> <831t87pnjo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456020918 31339 80.91.229.3 (21 Feb 2016 02:15:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 02:15:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 21 03:15:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aXJYC-00065O-42 for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 03:15:08 +0100 Original-Received: from localhost ([::1]:37182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXJYB-0003sz-4W for ged-emacs-devel@m.gmane.org; Sat, 20 Feb 2016 21:15:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXJY8-0003qD-9y for emacs-devel@gnu.org; Sat, 20 Feb 2016 21:15:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXJY5-0005s4-4v for emacs-devel@gnu.org; Sat, 20 Feb 2016 21:15:04 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:44098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXJY4-0005ry-UC; Sat, 20 Feb 2016 21:15:01 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aXJXi-0004uf-RB; Sun, 21 Feb 2016 03:14:39 +0100 In-Reply-To: <831t87pnjo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Feb 2016 14:35:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aXJXi-0004uf-RB MailScanner-NULL-Check: 1456625679.65066@0dLaPkuqgX03nmeS9e/Yag X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200348 Archived-At: Eli Zaretskii 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