From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#23902: 25.1.50; Strange warning on string-collate-equalp's docstring Date: Sat, 09 Jul 2016 13:06:57 -0400 Message-ID: References: <87vb0jeo56.fsf@telefonica.net> <831t36omxx.fsf@gnu.org> <87bn2aolcm.fsf@web.de> <83inwin5uu.fsf@gnu.org> <87oa6aepls.fsf@wanadoo.es> <838txen363.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468084103 13163 80.91.229.3 (9 Jul 2016 17:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 17:08:23 +0000 (UTC) Cc: michael_heerdegen@web.de, =?UTF-8?Q?=C3=93scar?= Fuentes , 23902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 09 19:08:13 2016 Return-path: Envelope-to: geb-bug-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 1bLvjh-0006Py-6A for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 19:08:13 +0200 Original-Received: from localhost ([::1]:51869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLvjg-0006BF-B4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 13:08:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLvjX-0006A9-UT for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 13:08:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLvjW-00026M-OY for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 13:08:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLvjW-00026I-Kh for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 13:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bLvjW-00030O-Gy for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 13:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jul 2016 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23902 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23902-submit@debbugs.gnu.org id=B23902.146808403811492 (code B ref 23902); Sat, 09 Jul 2016 17:08:02 +0000 Original-Received: (at 23902) by debbugs.gnu.org; 9 Jul 2016 17:07:18 +0000 Original-Received: from localhost ([127.0.0.1]:44342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLvio-0002zH-9L for submit@debbugs.gnu.org; Sat, 09 Jul 2016 13:07:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLvin-0002z4-GT for 23902@debbugs.gnu.org; Sat, 09 Jul 2016 13:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLvih-00022f-Fp for 23902@debbugs.gnu.org; Sat, 09 Jul 2016 13:07:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLvic-00020u-0o; Sat, 09 Jul 2016 13:07:06 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bLviV-0005S3-9r; Sat, 09 Jul 2016 13:06:59 -0400 X-Spook: spy Gunfight Gazprom Violence Police Food Poisoning Stuck X-Ran: (${`>RjoB3VAp+)hWy4)q,L*5LNJB#Pb5g,C]AXJK|tKI,oE&ATP0u7T>>Z (Eli Zaretskii's message of "Wed, 06 Jul 2016 19:26:28 +0300") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120708 Archived-At: Eli Zaretskii wrote: > Indeed. But this issue does exist, and is real. See, for example: > > http://archives.miloush.net/michkap/archive/2005/10/17/481600.html > > (CompareString is what we use on MS-Windows to implement > string-collate-equalp and string-collate-lessp.) But no-one using Emacs will reason in this way. "I want to compare if two files are the same. I don't know about file-equal-p, so I will just do a string comparison of the filenames. I know that the MS Windows function to compare strings is CompareString. Therefore I will see which Emacs function uses that. Ah, it is string-collate-equalp. Therefore I will use string-collate-equalp to compare two file names. I won't use the more obvious string-equal, nor will I read the documentation of string-collate-equalp, which makes it obvious that this is wrong." And suppose I have two strings, and want to know if they are equal, respecting my locale's convention about characters that are not literally identical, but have the same meaning. I should use string-collate-equalp for this. This is true whether the strings represent the names of elephants in a zoo, or files on a disk.