From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: convert-standard-filename Date: Mon, 08 Aug 2011 05:53:20 +0300 Message-ID: <83ty9szk9r.fsf@gnu.org> References: <83vcufaaqf.fsf@gnu.org> <83hb5vvwdp.fsf@gnu.org> <834o1t19hg.fsf@gnu.org> <83vcu9yn6h.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1312772012 29583 80.91.229.12 (8 Aug 2011 02:53:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 02:53:32 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 08 04:53:28 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 1QqFy3-0000qn-P9 for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 04:53:27 +0200 Original-Received: from localhost ([::1]:59776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqFy3-0006pB-2i for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 22:53:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqFxz-0006k7-Ty for emacs-devel@gnu.org; Sun, 07 Aug 2011 22:53:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqFxy-0004op-Uc for emacs-devel@gnu.org; Sun, 07 Aug 2011 22:53:23 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqFxy-0004od-OB; Sun, 07 Aug 2011 22:53:22 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LPL0040093KZ200@a-mtaout22.012.net.il>; Mon, 08 Aug 2011 05:53:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.94.185]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LPL004DA9CV7AL0@a-mtaout22.012.net.il>; Mon, 08 Aug 2011 05:53:20 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:142986 Archived-At: > Date: Sun, 7 Aug 2011 17:20:29 -0400 > From: Sam Steingold > Cc: Stefan Monnier , emacs-devel@gnu.org > > On Sun, Aug 7, 2011 at 4:35 PM, Eli Zaretskii wrote: > >> From: Stefan Monnier > >> [file-name-equal] should only operate on names without performing > >> any actual file/directory lookup. > > > > Why do you want to avoid hitting the disk? > > because hitting the disk is far more expensive. So? Does someone want to call convert-standard-filename in a tight loop or something? > when one is prepared to bear the cost, one can do > (file-name-equal (truename f1) (truename f2)) You assume that truename does all the canonicalization. Perhaps on Unix it does, but not on other platforms. Again, the case of 8+3 aliases on Windows comes to mind.