From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: One more string functions change Date: Sat, 28 Jun 2014 06:48:45 -0700 (PDT) Message-ID: <3c8f874e-73d7-435e-8898-2085cb76faba@default> References: <53AD8D59.5000207@yandex.ru> <6cf80ae5-a4ad-4839-adfd-14bf973f056f@default> <53AE3B17.4030100@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1403963363 10885 80.91.229.3 (28 Jun 2014 13:49:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2014 13:49:23 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 28 15:49:16 2014 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 1X0t0F-0002n6-QB for ged-emacs-devel@m.gmane.org; Sat, 28 Jun 2014 15:49:15 +0200 Original-Received: from localhost ([::1]:54782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0t0F-0004NG-Gy for ged-emacs-devel@m.gmane.org; Sat, 28 Jun 2014 09:49:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0t04-0004MF-1v for emacs-devel@gnu.org; Sat, 28 Jun 2014 09:49:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0szs-0003zI-8m for emacs-devel@gnu.org; Sat, 28 Jun 2014 09:49:03 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:27446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0szs-0003zA-0o for emacs-devel@gnu.org; Sat, 28 Jun 2014 09:48:52 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s5SDmnwj006475 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 28 Jun 2014 13:48:51 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s5SDmlRg029231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Jun 2014 13:48:48 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s5SDmj4s022114; Sat, 28 Jun 2014 13:48:45 GMT In-Reply-To: <53AE3B17.4030100@yandex.ru> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172793 Archived-At: > > (let ((case-fold-search t)) (string-lessp s1 s2)) > > We already have a global variable for this. Why add an argument for it? >=20 > Value of case-fold-search doesn't affect string-lessp and string-equal. Oh, right. What was the reason for that? Anyone know? > > How many occurrences of such a programming cliche for `string-lessp' > > do you find in the Emacs sources, for example? One? Zero? >=20 > Just ask grep: >... lisp/gnus/gnus-util.el:1440: (string-equal (downcase x) (downcase y)) >... > > or: (string-lessp (upper s1) (upper s2)) To me, that cliche seems just as easy & clear as (string-lessp s1 s2 t).