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#21816: elisp-mode-tests fails on a case-preserving filesystem Date: Tue, 03 Nov 2015 23:00:32 +0200 Message-ID: <83k2pyvlvz.fsf@gnu.org> References: <86mvuv30i1.fsf@stephe-leake.org> <86y4ef16ha.fsf@stephe-leake.org> <83d1vrw0p9.fsf@gnu.org> <86pozq28eo.fsf@stephe-leake.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446584487 29783 80.91.229.3 (3 Nov 2015 21:01:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2015 21:01:27 +0000 (UTC) Cc: lekktu@gmail.com, 21816@debbugs.gnu.org To: Stephen Leake Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 22:01:11 2015 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 1Ztiha-0001yf-Ke for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2015 22:01:10 +0100 Original-Received: from localhost ([::1]:50984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ztiha-0006wL-7z for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Nov 2015 16:01:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtihV-0006vz-AV for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2015 16:01:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtihS-0000h1-3o for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2015 16:01:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtihS-0000gx-0R for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2015 16:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZtihR-000535-Qt for bug-gnu-emacs@gnu.org; Tue, 03 Nov 2015 16:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Nov 2015 21:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21816-submit@debbugs.gnu.org id=B21816.144658442119344 (code B ref 21816); Tue, 03 Nov 2015 21:01:01 +0000 Original-Received: (at 21816) by debbugs.gnu.org; 3 Nov 2015 21:00:21 +0000 Original-Received: from localhost ([127.0.0.1]:51857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ztigm-00051v-Kh for submit@debbugs.gnu.org; Tue, 03 Nov 2015 16:00:21 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:49331) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ztigk-00051l-0X for 21816@debbugs.gnu.org; Tue, 03 Nov 2015 16:00:19 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NX900G00B52K600@mtaout27.012.net.il> for 21816@debbugs.gnu.org; Tue, 03 Nov 2015 22:55:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NX90093RBGPFW70@mtaout27.012.net.il>; Tue, 03 Nov 2015 22:55:38 +0200 (IST) In-reply-to: <86pozq28eo.fsf@stephe-leake.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:108388 Archived-At: > From: Stephen Leake > Cc: lekktu@gmail.com, 21816@debbugs.gnu.org > Date: Tue, 03 Nov 2015 13:24:31 -0600 > > Eli Zaretskii writes: > > > Sorry to bust this party, guys, but I don't think this solution is > > "good enough". > > In general, or just for this test? Both, IMO. > Let's fix the test first, and worry about the general case later. Why not kill two birds with the same stone? > > First, it won't DTRT with Windows file names that have > > backslashes (yes, they happen in Emacs). > > That's easy; add `expand-file-name'. For this specific case, yes. But there's no way to be sure no one will ever use concat or some such. Or just take default directory and use it directly. > > Second, 'downcase' has a known gotcha of using the current buffer's > > case tables, which is something you definitely don't want here. > > Ah; I had not considered non-ASCII stuff. > > Is there some global variable we can let-bind to control that? You want with-case-table and standard-case-table, I think. > > Bottom line, doing this "right" is not so trivial, and a dedicated > > function is a better solution, IMO. If you put it in files-x.el, it > > could be reused by other Lisp programs in the need of this. > > Yes, that makes sense. > > > IME, it doesn't pay off to use such incomplete solutions, the result > > is an annoying, albeit minor, maintenance burden. > > Not in this test. Not today, maybe. But there's always tomorrow and the day after.