From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23902: 25.1.50; Strange warning on string-collate-equalp's docstring Date: Wed, 06 Jul 2016 19:30:09 +0300 Message-ID: <8360sin2zy.fsf@gnu.org> References: <87vb0jeo56.fsf@telefonica.net> <831t36omxx.fsf@gnu.org> <87bn2aolcm.fsf@web.de> <83inwin5uu.fsf@gnu.org> <877fcyoj6j.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1467823301 12322 80.91.229.3 (6 Jul 2016 16:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 16:41:41 +0000 (UTC) Cc: oscarfv@telefonica.net, 23902@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 18:41:30 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 1bKptB-0007b9-Kk for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 18:41:29 +0200 Original-Received: from localhost ([::1]:34853 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKptB-0004pw-1O for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 12:41:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpj9-00020u-FW for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 12:31:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKpj4-0003hL-Ee for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 12:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpj4-0003hG-B4 for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 12:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKpj4-0006o3-7V for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 12:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2016 16:31: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.146782263826134 (code B ref 23902); Wed, 06 Jul 2016 16:31:02 +0000 Original-Received: (at 23902) by debbugs.gnu.org; 6 Jul 2016 16:30:38 +0000 Original-Received: from localhost ([127.0.0.1]:39800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKpig-0006nR-59 for submit@debbugs.gnu.org; Wed, 06 Jul 2016 12:30:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKpie-0006nF-KQ for 23902@debbugs.gnu.org; Wed, 06 Jul 2016 12:30:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKpiV-0003WF-C6 for 23902@debbugs.gnu.org; Wed, 06 Jul 2016 12:30:31 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpiV-0003Vu-9b; Wed, 06 Jul 2016 12:30:27 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4629 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bKpiR-0001yv-Dz; Wed, 06 Jul 2016 12:30:23 -0400 In-reply-to: <877fcyoj6j.fsf@web.de> (message from Michael Heerdegen on Wed, 06 Jul 2016 17:55:16 +0200) 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:120520 Archived-At: > From: Michael Heerdegen > Cc: oscarfv@telefonica.net, 23902@debbugs.gnu.org > Date: Wed, 06 Jul 2016 17:55:16 +0200 > > Eli Zaretskii writes: > > > > I also have trouble to understand. How can I compare file names modulo > > > collate-equality, if not with this function? > > > > With string=, of course. (Or, better yet, with file-equal-p, but > > that's a different story.) > > Does that compare mod collate-equality? Sorry, I cannot parse this. > > > But we are speaking about the docstring of `string-collate-equal-p'. > > > It is not clear here how it (as an equivalence predicate) could be > > > useful for sorting at all. > > > > If it is not useful, then the issue against which the note warns > > doesn't exist, does it? > > Useful for equality testing, or for comparing (and sorting)? Could be for either. It depends on what the programmer wants to achieve; we are talking some hypothetical application here. > I don't understand why the doc of `string-collate-equal-p' mentions > sorting at all. Is it useful for that? It could be used to gather similar "equivalent" file names together, for example.