From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: Sorting buffer with string-collate-lessp Date: Tue, 26 May 2015 16:53:37 +0200 Message-ID: <87mw0rfkzy.fsf@gmx.us> References: <87egm34kt0.fsf@gmx.us> <87twuz1jig.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432652050 413 80.91.229.3 (26 May 2015 14:54:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 14:54:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 26 16:54:00 2015 Return-path: Envelope-to: geh-help-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 1YxGEx-0002WU-Tz for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2015 16:54:00 +0200 Original-Received: from localhost ([::1]:48440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxGEx-00033q-H7 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2015 10:53:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxGEk-00033Y-Qh for help-gnu-emacs@gnu.org; Tue, 26 May 2015 10:53:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxGEg-0003tZ-Ub for help-gnu-emacs@gnu.org; Tue, 26 May 2015 10:53:46 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:59226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxGEg-0003tM-Lh for help-gnu-emacs@gnu.org; Tue, 26 May 2015 10:53:42 -0400 Original-Received: from x200s ([46.166.186.249]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M5IdH-1ZL8At0Z9b-00zUeH for ; Tue, 26 May 2015 16:53:40 +0200 In-Reply-To: <87twuz1jig.fsf@gnu.org> (Tassilo Horn's message of "Tue, 26 May 2015 16:49:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:iKl+zbLqJosHUlFfyTc5za8gFGeXY959oZoxPiUMEeJpTUUTNj+ LscXZ9nCcVuKmjg+UOg5xcHb0tHWTG55WHwUaR85QC+5FL6HWD3G8XDfwQRkZA933PXM4Mg Vau78jeIok/W8IQzuXqZrUWAJSpC7vuSnppHvT+zQkNf1F1wDSfulrs7FPH7Avp1GUrtbTA q0pa0s92T4pMjUXES618Q== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104578 Archived-At: Tassilo Horn writes: > So either my `cl-letf' usage is wrong or `sort-lines' doesn't really use > `string<'. (Actually, `string<' is an alias to `string-lessp', so I > also tried changing that accordingly, but still no effect...) I though sort-lines used compare-buffer-substrings, but this is just based on the docstring. It seems the nesting of parentheses is wrong in your example, but I guess it just the example. I did not try to letf to temporarily rename string<. Thanks, Rasmus -- Send from my Emacs