From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sort-lines including non ASCII Date: Thu, 07 Jul 2016 18:17:47 +0300 Message-ID: <83eg75lbok.fsf@gnu.org> References: <87bn2b6buh.fsf@mat.ucm.es> <83zipun8cf.fsf@gnu.org> <87inwiom3w.fsf@web.de> <877fcxyk9j.fsf@mat.ucm.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467904904 8448 80.91.229.3 (7 Jul 2016 15:21:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 15:21:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Uwe Brauer , Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 17:21:43 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 1bLB7V-0004dV-Rc for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 17:21:41 +0200 Original-Received: from localhost ([::1]:40570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLB7V-0001G4-3n for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 11:21:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLB41-0007Lw-KK for emacs-devel@gnu.org; Thu, 07 Jul 2016 11:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLB3v-0005iq-Jf for emacs-devel@gnu.org; Thu, 07 Jul 2016 11:18:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56142) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLB3v-0005iZ-GS; Thu, 07 Jul 2016 11:17:59 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1836 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bLB3u-0005Fw-JI; Thu, 07 Jul 2016 11:17:59 -0400 In-reply-to: <877fcxyk9j.fsf@mat.ucm.es> (message from Uwe Brauer on Thu, 07 Jul 2016 07:34:00 +0000) 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.21 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" Xref: news.gmane.org gmane.emacs.devel:205334 Archived-At: > From: Uwe Brauer > Date: Thu, 07 Jul 2016 07:34:00 +0000 > > > Should we make `sort-lines' accept a predicate argument passed to > > `sort-subr'? AFAIU one currently has to hack source code to get what > > the OP wants. > > I think that would be nice. How do you solve the problem of different argument lists in different predicates? And how do we allow to specify such an alternative comparison in interactive usage? Also, if string-collate-lessp is the only additional possibility we can think of, why not change sort-subr to use it "when it's TRT", as we do currently when sort-subr's PREDICATE argument is nil? Making sort-lines entirely open-ended like the suggestion says might be too much.