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 19:56:36 +0300 Message-ID: <83twg1jsjf.fsf@gnu.org> References: <87bn2b6buh.fsf@mat.ucm.es> <83zipun8cf.fsf@gnu.org> <87inwiom3w.fsf@web.de> <877fcxyk9j.fsf@mat.ucm.es> <83eg75lbok.fsf@gnu.org> <8760shfm0u.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467910632 6830 80.91.229.3 (7 Jul 2016 16:57:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2016 16:57:12 +0000 (UTC) Cc: oub@mat.ucm.es, emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 18:57:07 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 1bLCbo-0006vV-JV for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 18:57:04 +0200 Original-Received: from localhost ([::1]:41289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLCbn-0002pL-H2 for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2016 12:57:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLCbf-0002nY-55 for emacs-devel@gnu.org; Thu, 07 Jul 2016 12:56:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLCbZ-0005wP-HI for emacs-devel@gnu.org; Thu, 07 Jul 2016 12:56:54 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLCbZ-0005wD-E4; Thu, 07 Jul 2016 12:56:49 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1991 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bLCbX-0000bj-J1; Thu, 07 Jul 2016 12:56:48 -0400 In-reply-to: <8760shfm0u.fsf@web.de> (message from Michael Heerdegen on Thu, 07 Jul 2016 18:30:57 +0200) 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:205355 Archived-At: > From: Michael Heerdegen > Cc: Uwe Brauer , emacs-devel@gnu.org > Date: Thu, 07 Jul 2016 18:30:57 +0200 > > Eli Zaretskii writes: > > > 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? > > Yes, both objections are a problem indeed. > > > 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. > > Yeah, I came to the same conclusion. But when exactly is "when it's > TRT"? Maybe if we figure out how to allow this in interactive usage, we can pass that bit down? And if worse comes to worst, perhaps a separate command is in order, which uses collation by default?