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: Sun, 07 Aug 2011 23:24:17 -0400 Message-ID: References: <83vcufaaqf.fsf@gnu.org> <83hb5vvwdp.fsf@gnu.org> <834o1t19hg.fsf@gnu.org> <83vcu9yn6h.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312773869 4683 80.91.229.12 (8 Aug 2011 03:24:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 03:24:29 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Sam Steingold Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 08 05:24:25 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 1QqGS0-0006du-BG for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 05:24:24 +0200 Original-Received: from localhost ([::1]:38207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqGRz-0002wz-RE for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2011 23:24:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqGRw-0002wh-Tr for emacs-devel@gnu.org; Sun, 07 Aug 2011 23:24:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqGRw-0001dt-54 for emacs-devel@gnu.org; Sun, 07 Aug 2011 23:24:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:8216 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqGRu-0001dY-PR; Sun, 07 Aug 2011 23:24:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAL5VP05FxKeo/2dsb2JhbABCpzV4gUABAQQBJy8jBQsLDiYSFBgNEAETiAC6BIZGBJ9VhDE X-IronPort-AV: E=Sophos;i="4.67,335,1309752000"; d="scan'208";a="129687042" Original-Received: from 69-196-167-168.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.168]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 07 Aug 2011 23:24:17 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5DCE666386; Sun, 7 Aug 2011 23:24:17 -0400 (EDT) In-Reply-To: (Sam Steingold's message of "Sun, 7 Aug 2011 17:20:29 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) 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.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:142990 Archived-At: >>> [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 I'd like it to work for files and directories which may not even exist (yet?). But maybe that's unrealistic (I guess the foobar -> foob~1 rewrite in some Windows cases probably can't work without hitting the disk). > when one is prepared to bear the cost, one can do > (file-name-equal (truename f1) (truename f2)) If it can only work for existing files/directories, then comparing the output of file-attributes (esp elements 10 and 11) seems like a better implementation, at least on POSIX. But then it's not "file-name-equal" but "file-equal". Stefan