From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#18051: 24.3.92; ls-lisp: Sorting; make ls-lisp-string-lessp a normal function? Date: Sat, 19 Jul 2014 03:25:01 +0200 Message-ID: <8761iujg2a.fsf@web.de> References: <87ha2f5gp8.fsf@web.de> <838unr6ttu.fsf@gnu.org> <871ttj5dfi.fsf@web.de> <837g3b6ob7.fsf@gnu.org> <874myfatyo.fsf@web.de> <831ttj6lu5.fsf@gnu.org> <87zjg79dhw.fsf@web.de> <83wqba6cpe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405733187 31194 80.91.229.3 (19 Jul 2014 01:26:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2014 01:26:27 +0000 (UTC) Cc: 18051@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 19 03:26:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1X8JPm-0005nC-HX for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Jul 2014 03:26:18 +0200 Original-Received: from localhost ([::1]:52593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8JPm-0003Ae-3K for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 21:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8JPd-00039U-Dp for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 21:26:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8JPX-00089h-ET for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 21:26:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8JPX-00089d-B6 for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 21:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X8JPW-0006i2-QC for bug-gnu-emacs@gnu.org; Fri, 18 Jul 2014 21:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jul 2014 01:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18051-submit@debbugs.gnu.org id=B18051.140573311625740 (code B ref 18051); Sat, 19 Jul 2014 01:26:02 +0000 Original-Received: (at 18051) by debbugs.gnu.org; 19 Jul 2014 01:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:58745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8JOl-0006h3-AY for submit@debbugs.gnu.org; Fri, 18 Jul 2014 21:25:16 -0400 Original-Received: from mout.web.de ([212.227.15.3]:56777) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8JOh-0006gl-LM for 18051@debbugs.gnu.org; Fri, 18 Jul 2014 21:25:12 -0400 Original-Received: from drachen.dragon ([94.217.127.201]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MaHHc-1WoR3m2p2G-00Jstn; Sat, 19 Jul 2014 03:25:02 +0200 In-Reply-To: <83wqba6cpe.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Jul 2014 16:03:41 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-Provags-ID: V03:K0:YjmTjfXyREaJiwlJuLMdN/ytC3N2uHRfIZDN1HVoALv5kOpuqIQ EOjvc0KKYVoBvxEmlmZr1/wl6l9rcXI+zFwpKdo6uNIi6piocLfIo68TW0dEocsJcohfL7F aDnJj1uM/d9SO5dfyw51Cw5NyK1uYpGoo866zp1lIZORxd+tOUxXiqC+rnXxS3ms5MVX9iA E1ApxWavhQzoHlLqPQjLQ== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91643 Archived-At: Eli Zaretskii writes: > > Anyway, what I want to reach: > > > > (1) sort in files starting with a dot as if they had no dot > > Why? Personally, it would mightily confuse me: I always expect to > find all the dot-files together. This is useful, e.g., when I'm > looking for init file related to some feature, but I don't know the > exact name of that file. But currently all dot files are listed before all the other files. I find that annoying most of the time. Dunno yet if I like my current setup, I'll see - but over the current sorting, I would much prefer having all the dot files at the end. (I don't know if this is possible with ls.) > But if 'ls' supports that, so should ls-lisp. It depends on "locale" settings. I tried some settings of the LC_ALL variable. With "C" or "POSIX", I get the same sorting as with ls-lisp. OTOH, with "en_US.utf8" or "de_DE.utf8" I get the sorting I described, with dot files merged with the other files. > > (2) -v sorting (sorting versions correctly) > > Isn't this what "ls -v" does? If so, and if ls-lisp doesn't currently > support that, patches to add such support are welcome. ls -v sorts backup versions in their natural order (which is not the lexicographic order). Yes, would be good to have that in ls-lisp, and should not be too hard. I can give it a try when I get the time. But I'm not sure what would have to be done about the locale depend part.