From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: oscarfv@telefonica.net (=?UTF-8?Q?=C3=93scar?= Fuentes) Newsgroups: gmane.emacs.bugs Subject: bug#23902: 25.1.50; Strange warning on string-collate-equalp's docstring Date: Wed, 06 Jul 2016 17:46:39 +0200 Message-ID: <87oa6aepls.fsf@wanadoo.es> References: <87vb0jeo56.fsf@telefonica.net> <831t36omxx.fsf@gnu.org> <87bn2aolcm.fsf@web.de> <83inwin5uu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467820708 1474 80.91.229.3 (6 Jul 2016 15:58:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 15:58:28 +0000 (UTC) Cc: Michael Heerdegen , 23902@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 17:58:17 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 1bKpDL-0004PP-UD for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 17:58:16 +0200 Original-Received: from localhost ([::1]:34445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKpDK-0004dC-Vx for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 11:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKp2Y-00007n-Eu for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:47:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKp2U-0007GI-Lm for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:47:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKp2U-0007Fz-Hr for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bKp2U-0005gy-Cg for bug-gnu-emacs@gnu.org; Wed, 06 Jul 2016 11:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: oscarfv@telefonica.net (=?UTF-8?Q?=C3=93scar?= Fuentes) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Jul 2016 15:47: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.146782001721721 (code B ref 23902); Wed, 06 Jul 2016 15:47:02 +0000 Original-Received: (at 23902) by debbugs.gnu.org; 6 Jul 2016 15:46:57 +0000 Original-Received: from localhost ([127.0.0.1]:39739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKp2L-0005ar-By for submit@debbugs.gnu.org; Wed, 06 Jul 2016 11:46:57 -0400 Original-Received: from smtp21.acens.net ([86.109.99.145]:58963 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKp2F-0005RZ-DU for 23902@debbugs.gnu.org; Wed, 06 Jul 2016 11:46:51 -0400 X-CTCH-RefID: str=0001.0A0B0208.577D27E1.0022, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Original-Received: from qcore (217.125.182.141) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 574060E7024B1FA8; Wed, 6 Jul 2016 15:46:41 +0000 In-Reply-To: <83inwin5uu.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 06 Jul 2016 18:28:25 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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:120511 Archived-At: 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.) I understand why comparing file names with string-collate-equalp is a bad idea (it can return t for cases where the names are different from the POV of the file system) but then explaining this in full and pointing to file-equal-p doesn't take too much space (about the same as the current note, I'll say). (using string= for comparing file names is a bad idea for the same reason idea when the FS is case-insensitive, BTW) >> 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? Putting notes about non-existing issues is surely confusing, isn't it?