From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toru TSUNEYOSHI Newsgroups: gmane.emacs.devel Subject: Re: enable sorting by version in `ls-lisp-handle-switches' Date: Fri, 12 Mar 2010 14:31:39 +0900 Message-ID: References: <20100312.030317.128157175.tune@to.email.ne.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1268371932 26144 80.91.229.12 (12 Mar 2010 05:32:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2010 05:32:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 12 06:32:07 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NpxTZ-0006yy-Hy for ged-emacs-devel@m.gmane.org; Fri, 12 Mar 2010 06:31:57 +0100 Original-Received: from localhost ([127.0.0.1]:38942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpxTY-0002y4-Ur for ged-emacs-devel@m.gmane.org; Fri, 12 Mar 2010 00:31:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NpxTU-0002xv-Hr for emacs-devel@gnu.org; Fri, 12 Mar 2010 00:31:52 -0500 Original-Received: from [140.186.70.92] (port=59364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NpxTS-0002xm-UJ for emacs-devel@gnu.org; Fri, 12 Mar 2010 00:31:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NpxTS-0000N4-9n for emacs-devel@gnu.org; Fri, 12 Mar 2010 00:31:50 -0500 Original-Received: from blu0-omc4-s20.blu0.hotmail.com ([65.55.111.159]:41004) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NpxTS-0000N0-7e for emacs-devel@gnu.org; Fri, 12 Mar 2010 00:31:50 -0500 Original-Received: from BLU0-SMTP80 ([65.55.111.137]) by blu0-omc4-s20.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Mar 2010 21:31:49 -0800 X-Originating-IP: [124.155.30.210] X-Originating-Email: [t_tuneyosi@hotmail.com] Original-Received: from localhost ([124.155.30.210]) by BLU0-SMTP80.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 11 Mar 2010 21:31:48 -0800 In-Reply-To: X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) X-OriginalArrivalTime: 12 Mar 2010 05:31:48.0632 (UTC) FILETIME=[4FD0A980:01CAC1A5] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121846 Archived-At: > Indeed, I don't expect them to behave identically. OK. I wanted to list just different points between those functions. Those are not alternative, I think. (I have still struggled to write English properly. :) ) > The implementation strategy is also very different, so I'd expect the > performance behavior to be quite different as well. Yes. That's right. Originally, I wanted `ls-lisp-handle-switches' to sort by version. Then I made the functions, `string-version-lessp' (based on Gnu) and `string-logical-lessp' (based on Windows). I think that users will select the favorite one.