From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: convert-standard-filename's doc Date: 31 May 2004 09:05:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040528200923.5B69.LEKTU@mi.madritel.es> <86y8nbpjt8.fsf@rumba.de.uu.net> <20040529194813.6952.LEKTU@mi.madritel.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085983436 7753 80.91.224.253 (31 May 2004 06:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 May 2004 06:03:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 31 08:03:47 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUftj-00031K-00 for ; Mon, 31 May 2004 08:03:47 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUftj-0006qe-00 for ; Mon, 31 May 2004 08:03:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUftt-0005j5-KN for emacs-devel@quimby.gnus.org; Mon, 31 May 2004 02:03:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUftg-0005iz-IY for emacs-devel@gnu.org; Mon, 31 May 2004 02:03:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUfte-0005in-NF for emacs-devel@gnu.org; Mon, 31 May 2004 02:03:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUfte-0005ik-EW for emacs-devel@gnu.org; Mon, 31 May 2004 02:03:42 -0400 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.34) id 1BUftH-0005rh-Gl; Mon, 31 May 2004 02:03:20 -0400 Original-To: Juanma Barranquero In-reply-to: <20040529194813.6952.LEKTU@mi.madritel.es> (message from Juanma Barranquero on Sat, 29 May 2004 19:55:52 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24266 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24266 > Date: Sat, 29 May 2004 19:55:52 +0200 > From: Juanma Barranquero > > BTW, shouldn't it mention that on DOS it strips trailing (back)?slashes > and converts a leading . into _? No. The trailing slash is not removed in the final result, as the code does this: (if (memq (aref filename (1- flen)) '(?/ ?\\)) (concat (convert-standard-filename (substring filename 0 (1- flen))) "/") As you see, the trailing slash is put back into what the recursive invocation returns. As for replacing the leading dot, that's one of the aspects of making the file name compatible with the 8+3 limitations: a leading dot is not allowed.