From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: convert-standard-filename Date: Tue, 09 Aug 2011 14:36:18 -0400 Message-ID: References: <83vcufaaqf.fsf@gnu.org> <83hb5vvwdp.fsf@gnu.org> <834o1t19hg.fsf@gnu.org> <83vcu9yn6h.fsf@gnu.org> <83obzzzpf8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312935721 27105 80.91.229.12 (10 Aug 2011 00:22:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2011 00:22:01 +0000 (UTC) Cc: sds@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 10 02:21:57 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QqwYW-0001sP-UH for ged-emacs-devel@m.gmane.org; Wed, 10 Aug 2011 02:21:57 +0200 Original-Received: from localhost ([::1]:43035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqwYW-0008Eb-4f for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2011 20:21:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqwYQ-0008EL-9n for emacs-devel@gnu.org; Tue, 09 Aug 2011 20:21:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqwYL-0007ma-W6 for emacs-devel@gnu.org; Tue, 09 Aug 2011 20:21:50 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqwYA-0007Qa-Ga; Tue, 09 Aug 2011 20:21:40 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id p7A0KiNk011321; Tue, 9 Aug 2011 20:20:45 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 24DE26659E; Tue, 9 Aug 2011 14:36:18 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 09 Aug 2011 01:19:50 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3944=0 X-NAI-Spam-Version: 2.2.0.9286 : core <3944> : streams <670234> : uri <930350> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143082 Archived-At: >> (defun file-name-equal (f1 f2) >> (equal (file-name-canonical f1) (file-name-canonical f2))) > Another slippery slope, IMO: on some platforms the "canonical" file > name cannot be computed unless the file exists. Unless you redefine > "canonical" to be a derivative of file-name-equal according to the > above defun, in which case it will probably confuse the heck out of > programmers who are used to canonicalize_file_name and realpath. Again, I'm not necessarily advocating this approach. It does have some advantages (e.g. if you want to define a map (alist/hash) from file names to values, where file names need to be compared with file-name-equal). But it may indeed prove impossible/impractical to implement. Stefan