From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Human-readable file sorting Date: Sun, 21 Feb 2016 18:36:00 -0500 Message-ID: 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> <87d1rqkdx1.fsf@gnus.org> Reply-To: rms@gnu.org NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset=Utf-8 X-Trace: ger.gmane.org 1456097800 23643 80.91.229.3 (21 Feb 2016 23:36:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 23:36:40 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 22 00:36:30 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 1aXdYD-0000C5-SA for ged-emacs-devel@m.gmane.org; Mon, 22 Feb 2016 00:36:30 +0100 Original-Received: from localhost ([::1]:45002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXdY9-0000GT-Vh for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 18:36:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXdXu-0000GM-3I for emacs-devel@gnu.org; Sun, 21 Feb 2016 18:36:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXdXt-0001WE-A8 for emacs-devel@gnu.org; Sun, 21 Feb 2016 18:36:10 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXdXl-0001VF-DY; Sun, 21 Feb 2016 18:36:01 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aXdXk-0001gu-HI; Sun, 21 Feb 2016 18:36:00 -0500 In-reply-to: <87d1rqkdx1.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 21 Feb 2016 13:14:34 +1100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:200405 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > 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. I think we should have a new comparison function that compares two strings in this "natural" way. Perhaps 'string-natural-lessp'. Then we should have a global variable that specifies which function to use to compare file names. Its value could be 'string-lessp' or 'string-natural-lessp' or something else. Its name could be 'file-name-comparison-function'. Then we want some user interface to make it easy to choose one of those two functions as the value of 'file-name-comparison-function'. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html.