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: file-truename, convert-standard-filename Date: Sun, 07 Feb 2010 20:38:13 -0500 Message-ID: References: <83k4urfqs9.fsf@gnu.org> <0B5BFE3DC87648888328B75164292F06@us.oracle.com> <83bpg2g2l8.fsf@gnu.org> <834oluf9c8.fsf@gnu.org> <07544B532C8E490F96FE0B1CF403C510@us.oracle.com> <83zl3mdo22.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265593108 9753 80.91.229.12 (8 Feb 2010 01:38:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2010 01:38:28 +0000 (UTC) Cc: 'Eli Zaretskii' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 08 02:38:26 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NeIZz-0003PJ-Ef for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2010 02:38:23 +0100 Original-Received: from localhost ([127.0.0.1]:58646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeIZy-0004R2-Pf for ged-emacs-devel@m.gmane.org; Sun, 07 Feb 2010 20:38:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeIZs-0004Ng-R9 for emacs-devel@gnu.org; Sun, 07 Feb 2010 20:38:16 -0500 Original-Received: from [199.232.76.173] (port=33104 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeIZs-0004ND-GL for emacs-devel@gnu.org; Sun, 07 Feb 2010 20:38:16 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeIZr-0006f3-J6 for emacs-devel@gnu.org; Sun, 07 Feb 2010 20:38:16 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29767 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NeIZq-0006eq-0A; Sun, 07 Feb 2010 20:38:14 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuAEAD76bktLd+Rw/2dsb2JhbACBMtUchFQEim8 X-IronPort-AV: E=Sophos;i="4.49,424,1262581200"; d="scan'208";a="55512866" Original-Received: from 75-119-228-112.dsl.teksavvy.com (HELO pastel.home) ([75.119.228.112]) by ironport2-out.pppoe.ca with ESMTP; 07 Feb 2010 20:38:13 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 2C7817F5D; Sun, 7 Feb 2010 20:38:13 -0500 (EST) In-Reply-To: (Drew Adams's message of "Sat, 6 Feb 2010 15:12:05 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:121017 Archived-At: > THEORETICALLY, one _always_ needs c-s-f, unless either (1) you know > that the file that is named exists or (2) you know _all_ of the > following: (2a) the file system being used, (2b) the file name being > used, and (2c) that the given file name is a valid one for the given > file system. No, I think it should be more restrictive: you should use c-s-f if and only if the file name might not be valid on the current system, and where it would be a bug if that file name turned out to be invalid on the current system. In most cases, the first condition is already false: you generally get file names which you know are valid on the current system. Of the remining cases, most fail the second condition: for most files that may not be valid, it's perfectly OK to signal an error if it turns out to be invalid, because it was a user-error to use that file name. So yes, the cases where c-s-f are needed are rare and mostly "internal". Stefan