From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Add a predicate for canonical file name Date: Tue, 13 Sep 2016 08:14:57 -0400 Message-ID: References: <838tux9h3c.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473777063 30910 195.159.176.226 (13 Sep 2016 14:31:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2016 14:31:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 13 16:30:53 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bjojL-0005VR-L9 for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2016 16:30:35 +0200 Original-Received: from localhost ([::1]:49271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjojJ-0006aR-QH for ged-emacs-devel@m.gmane.org; Tue, 13 Sep 2016 10:30:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjoiW-0006Wn-0I for emacs-devel@gnu.org; Tue, 13 Sep 2016 10:29:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjoiO-0008Vu-QB for emacs-devel@gnu.org; Tue, 13 Sep 2016 10:29:41 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:42197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjoiO-0008UN-LN for emacs-devel@gnu.org; Tue, 13 Sep 2016 10:29:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CQAgALW9BX/8OTCkxdHAEBBAEBgy0BAQEBAR6ETYVQhGWrEYIDhhIEBAICgWk5FAECAQEBAQEBAV4nhGIBAQMBViMFCwsOHwcSFBgNEAETiFUIvFUBAQgnin2Ef4UAHQEEjieLMpkNhguPDYE+HjaCaBuBaSCGCgEBAQ X-IPAS-Result: A0CQAgALW9BX/8OTCkxdHAEBBAEBgy0BAQEBAR6ETYVQhGWrEYIDhhIEBAICgWk5FAECAQEBAQEBAV4nhGIBAQMBViMFCwsOHwcSFBgNEAETiFUIvFUBAQgnin2Ef4UAHQEEjieLMpkNhguPDYE+HjaCaBuBaSCGCgEBAQ X-IronPort-AV: E=Sophos;i="5.30,296,1470715200"; d="scan'208";a="272307512" Original-Received: from 76-10-147-195.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.195]) by smtp.teksavvy.com with ESMTP; 13 Sep 2016 10:29:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DD6E964AF6; Tue, 13 Sep 2016 08:14:57 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Tue, 13 Sep 2016 06:54:04 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207418 Archived-At: >> - equivalent regardless of the actual on-disk data. I.e. this can't >> take symlinks or hard links into account. Questions remain about >> whether it could presume the "normal semantics of the most common >> file-system". E.g. should it assume case-insensitive names in >> MacOS/Windows and case-sensitive in GNU/Linux? > You couldn't even do that because case-folding on Windows depends on the > file system. That's what I said: =AB Questions remain about whether it could presume the "normal semantics of the most common file-system". =BB Doesn't mean you can't do it. Just that you may end up doing it in a way which isn't what the caller expects/needs. > You couldn't even collapse "/../" because of symlinks. Here again, that's actually a choice. `expand-file-name` (and by extension, Emacs in general) already made the choice to disregard this case. Stefan