From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#18716: Patch for this bug Date: Sat, 26 Nov 2016 13:29:09 -0500 Message-ID: <3cd1ba7a-1aa4-359c-a817-dac9b567157e@cornell.edu> References: <8761fm903w.fsf@sc3d.org> <83a8d9hh62.fsf@gnu.org> <83lgwsfntd.fsf@gnu.org> <83y40rdyku.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1480185017 9515 195.159.176.226 (26 Nov 2016 18:30:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2016 18:30:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 Cc: 18716@debbugs.gnu.org To: Reuben Thomas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 26 19:30:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAhjm-0001II-J5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Nov 2016 19:30:10 +0100 Original-Received: from localhost ([::1]:51418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAhjq-0000p6-B2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Nov 2016 13:30:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAhjj-0000mN-6W for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 13:30:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAhje-0001VI-BJ for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 13:30:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAhje-0001VA-8i for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 13:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cAhjd-000797-UF for bug-gnu-emacs@gnu.org; Sat, 26 Nov 2016 13:30:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Nov 2016 18:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18716-submit@debbugs.gnu.org id=B18716.148018496027388 (code B ref 18716); Sat, 26 Nov 2016 18:30:01 +0000 Original-Received: (at 18716) by debbugs.gnu.org; 26 Nov 2016 18:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:42615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAhiy-00077g-D9 for submit@debbugs.gnu.org; Sat, 26 Nov 2016 13:29:20 -0500 Original-Received: from limerock03.mail.cornell.edu ([128.84.13.243]:57861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAhiv-00077S-VX for 18716@debbugs.gnu.org; Sat, 26 Nov 2016 13:29:18 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id uAQITBKr018722; Sat, 26 Nov 2016 13:29:11 -0500 Original-Received: from [192.168.1.5] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id uAQITACm021714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 26 Nov 2016 13:29:10 -0500 In-Reply-To: X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; 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:126121 Archived-At: On 11/26/2016 12:54 PM, Reuben Thomas wrote: >> Sounds like a good compromise. I agree about the default, except that >> it should default to case-insensitive matches on case-insensitive >> filesystems (Windows etc.) > I have now implemented this (apologies for the delay). I attach revised patches. As of commit 2809012 we have a new primitive, file-name-case-insensitive-p, that can be used to determine whether or not a filesystem is case insensitive. This is better than relying on system type. For example, on both Cygwin and macOS, it's possible that some filesystems are case-insensitive and others aren't. Ken